2
/*___INFO__MARK_BEGIN__*/
3
/*************************************************************************
5
* The Contents of this file are made available subject to the terms of
6
* the Sun Industry Standards Source License Version 1.2
8
* Sun Microsystems Inc., March, 2001
11
* Sun Industry Standards Source License Version 1.2
12
* =================================================
13
* The contents of this file are subject to the Sun Industry Standards
14
* Source License Version 1.2 (the "License"); You may not use this file
15
* except in compliance with the License. You may obtain a copy of the
16
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
18
* Software provided under this License is provided on an "AS IS" basis,
19
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
20
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
21
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
22
* See the License for the specific provisions governing your rights and
23
* obligations concerning the Software.
25
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
27
* Copyright: 2001 by Sun Microsystems, Inc.
29
* All Rights Reserved.
31
************************************************************************/
32
/*___INFO__MARK_END__*/
42
#ifdef __CL_FUNCTION__
43
#undef __CL_FUNCTION__
45
#define __CL_FUNCTION__ "main()"
51
printf("\ntest cl_util_get_ulong_number_length()\n");
53
printf("MAX_ULONG: %lu\n", ULONG_MAX);
54
/* INT_MAX , ULONG_MAX */
55
back = cl_util_get_ulong_number_length(i);
56
printf("min: %lu last back=%d\n",i,back);
58
back = cl_util_get_ulong_number_length(i);
59
printf("max: %lu last back=%d\n",i,back);
61
back = cl_util_get_ulong_number_length(i);
62
printf("max: %lu last back=%d\n",i,back);
64
printf("\ntest cl_util_get_int_number_length()\n");
66
back = cl_util_get_int_number_length(i2);
67
printf("min: %d last back=%d\n",i2,back);
69
back = cl_util_get_int_number_length(i2);
70
printf("max: %d last back=%d\n",i2,back);
72
back = cl_util_get_int_number_length(i2);
73
printf("max: %d last back=%d\n",i2,back);
75
printf("\ntest cl_util_get_ulong_value()\n");
76
i = cl_util_get_ulong_value("4294967295");
77
printf("value: %lu for string \"%s\"\n",i,"4294967295");
79
i = cl_util_get_ulong_value("1000");
80
printf("value: %lu for string \"%s\"\n",i,"1000");
82
i = cl_util_get_ulong_value("-1");
83
printf("value: %lu for string \"%s\"\n",i,"-1");
86
printf("main done\n");