RTEMS-6
Annotated Report
libstringto
Sun Feb 28 23:22:00 2021
00105c70 <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
105c70: 55 push %ebp
105c71: 89 e5 mov %esp,%ebp
105c73: 83 ec 48 sub $0x48,%esp
105c76: 89 5d f4 mov %ebx,-0xc(%ebp)
105c79: 8b 5d 0c mov 0xc(%ebp),%ebx
105c7c: 89 75 f8 mov %esi,-0x8(%ebp)
105c7f: 8b 75 08 mov 0x8(%ebp),%esi
105c82: 89 7d fc mov %edi,-0x4(%ebp)
105c85: 8b 7d 10 mov 0x10(%ebp),%edi
double result;
char *end;
if ( !n )
105c88: 85 db test %ebx,%ebx
105c8a: 0f 84 c0 00 00 00 je 105d50 <rtems_string_to_double+0xe0>
return RTEMS_INVALID_ADDRESS;
errno = 0;
105c90: e8 4b 4c 01 00 call 11a8e0 <__errno>
105c95: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
105c9b: d9 ee fldz
result = strtod( s, &end );
105c9d: 8d 45 e4 lea -0x1c(%ebp),%eax
*n = 0;
105ca0: dd 1b fstpl (%ebx)
result = strtod( s, &end );
105ca2: 89 44 24 04 mov %eax,0x4(%esp)
105ca6: 89 34 24 mov %esi,(%esp)
105ca9: e8 f2 6e 01 00 call 11cba0 <strtod>
if ( endptr )
105cae: 85 ff test %edi,%edi
*endptr = end;
105cb0: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
105cb3: 74 02 je 105cb7 <rtems_string_to_double+0x47>
*endptr = end;
105cb5: 89 07 mov %eax,(%edi)
105cb7: dd 5d d0 fstpl -0x30(%ebp)
if ( end == s )
105cba: 39 c6 cmp %eax,%esi
105cbc: 0f 84 ae 00 00 00 je 105d70 <rtems_string_to_double+0x100>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
105cc2: e8 19 4c 01 00 call 11a8e0 <__errno>
105cc7: dd 45 d0 fldl -0x30(%ebp)
105cca: 83 38 22 cmpl $0x22,(%eax)
105ccd: 74 11 je 105ce0 <rtems_string_to_double+0x70>
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
105ccf: dd 1b fstpl (%ebx)
return RTEMS_SUCCESSFUL;
105cd1: 31 c0 xor %eax,%eax
}
105cd3: 8b 5d f4 mov -0xc(%ebp),%ebx
105cd6: 8b 75 f8 mov -0x8(%ebp),%esi
105cd9: 8b 7d fc mov -0x4(%ebp),%edi
105cdc: 89 ec mov %ebp,%esp
105cde: 5d pop %ebp
105cdf: c3 ret
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
105ce0: d9 ee fldz
105ce2: d9 c9 fxch %st(1)
105ce4: b1 01 mov $0x1,%cl
105ce6: dd e1 fucom %st(1)
105ce8: df e0 fnstsw %ax
105cea: dd d9 fstp %st(1)
105cec: 9e sahf
105ced: 7b 41 jnp 105d30 <rtems_string_to_double+0xc0> <== ALWAYS TAKEN
105cef: 31 c9 xor %ecx,%ecx
105cf1: d9 05 30 5e 12 00 flds 0x125e30
105cf7: d9 c9 fxch %st(1)
105cf9: b2 01 mov $0x1,%dl
105cfb: dd e1 fucom %st(1)
105cfd: df e0 fnstsw %ax
105cff: dd d9 fstp %st(1)
105d01: 9e sahf
105d02: 7a 3c jp 105d40 <rtems_string_to_double+0xd0> <== NEVER TAKEN
105d04: 75 3a jne 105d40 <rtems_string_to_double+0xd0>
105d06: 08 d1 or %dl,%cl
105d08: 75 16 jne 105d20 <rtems_string_to_double+0xb0>
105d0a: dd 05 38 5e 12 00 fldl 0x125e38
105d10: dd e9 fucomp %st(1)
105d12: df e0 fnstsw %ax
105d14: 9e sahf
105d15: 76 b8 jbe 105ccf <rtems_string_to_double+0x5f> <== NEVER TAKEN
105d17: dd d8 fstp %st(0)
105d19: eb 07 jmp 105d22 <rtems_string_to_double+0xb2>
105d1b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
105d1f: 90 nop
105d20: dd d8 fstp %st(0)
return RTEMS_INVALID_NUMBER;
105d22: b8 0a 00 00 00 mov $0xa,%eax
105d27: eb aa jmp 105cd3 <rtems_string_to_double+0x63>
105d29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
105d30: 74 bf je 105cf1 <rtems_string_to_double+0x81> <== NEVER TAKEN
105d32: eb bb jmp 105cef <rtems_string_to_double+0x7f>
105d34: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105d3b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
105d3f: 90 nop
105d40: 31 d2 xor %edx,%edx
105d42: eb c2 jmp 105d06 <rtems_string_to_double+0x96>
105d44: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105d4b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
105d4f: 90 nop
}
105d50: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
105d53: b8 09 00 00 00 mov $0x9,%eax
}
105d58: 8b 75 f8 mov -0x8(%ebp),%esi
105d5b: 8b 7d fc mov -0x4(%ebp),%edi
105d5e: 89 ec mov %ebp,%esp
105d60: 5d pop %ebp
105d61: c3 ret
105d62: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105d69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105d70: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
105d73: b8 0b 00 00 00 mov $0xb,%eax
}
105d78: 8b 75 f8 mov -0x8(%ebp),%esi
105d7b: 8b 7d fc mov -0x4(%ebp),%edi
105d7e: 89 ec mov %ebp,%esp
105d80: 5d pop %ebp
105d81: c3 ret
105d82: 90 nop
105d83: 90 nop
105d84: 90 nop
105d85: 90 nop
105d86: 90 nop
105d87: 90 nop
105d88: 90 nop
105d89: 90 nop
105d8a: 90 nop
105d8b: 90 nop
105d8c: 90 nop
105d8d: 90 nop
105d8e: 90 nop
105d8f: 90 nop
00105d90 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
105d90: 55 push %ebp
105d91: 89 e5 mov %esp,%ebp
105d93: 83 ec 48 sub $0x48,%esp
105d96: 89 5d f4 mov %ebx,-0xc(%ebp)
105d99: 8b 5d 0c mov 0xc(%ebp),%ebx
105d9c: 89 75 f8 mov %esi,-0x8(%ebp)
105d9f: 8b 75 08 mov 0x8(%ebp),%esi
105da2: 89 7d fc mov %edi,-0x4(%ebp)
105da5: 8b 7d 10 mov 0x10(%ebp),%edi
float result;
char *end;
if ( !n )
105da8: 85 db test %ebx,%ebx
105daa: 0f 84 d0 00 00 00 je 105e80 <rtems_string_to_float+0xf0>
return RTEMS_INVALID_ADDRESS;
errno = 0;
105db0: e8 2b 4b 01 00 call 11a8e0 <__errno>
105db5: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
result = strtof( s, &end );
105dbb: 8d 45 e4 lea -0x1c(%ebp),%eax
*n = 0;
105dbe: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtof( s, &end );
105dc4: 89 44 24 04 mov %eax,0x4(%esp)
105dc8: 89 34 24 mov %esi,(%esp)
105dcb: e8 00 6e 01 00 call 11cbd0 <strtof>
if ( endptr )
105dd0: 85 ff test %edi,%edi
*endptr = end;
105dd2: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
105dd5: 74 02 je 105dd9 <rtems_string_to_float+0x49>
*endptr = end;
105dd7: 89 07 mov %eax,(%edi)
105dd9: d9 5d d4 fstps -0x2c(%ebp)
if ( end == s )
105ddc: 39 c6 cmp %eax,%esi
105dde: 0f 84 bc 00 00 00 je 105ea0 <rtems_string_to_float+0x110>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
105de4: e8 f7 4a 01 00 call 11a8e0 <__errno>
105de9: d9 45 d4 flds -0x2c(%ebp)
105dec: 83 38 22 cmpl $0x22,(%eax)
105def: 74 1f je 105e10 <rtems_string_to_float+0x80>
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
105df1: d9 1b fstps (%ebx)
return RTEMS_SUCCESSFUL;
105df3: 31 c0 xor %eax,%eax
}
105df5: 8b 5d f4 mov -0xc(%ebp),%ebx
105df8: 8b 75 f8 mov -0x8(%ebp),%esi
105dfb: 8b 7d fc mov -0x4(%ebp),%edi
105dfe: 89 ec mov %ebp,%esp
105e00: 5d pop %ebp
105e01: c3 ret
105e02: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105e09: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
105e10: d9 ee fldz
105e12: d9 c9 fxch %st(1)
105e14: b1 01 mov $0x1,%cl
105e16: dd e1 fucom %st(1)
105e18: df e0 fnstsw %ax
105e1a: dd d9 fstp %st(1)
105e1c: 9e sahf
105e1d: 7b 41 jnp 105e60 <rtems_string_to_float+0xd0> <== ALWAYS TAKEN
105e1f: 31 c9 xor %ecx,%ecx
105e21: d9 05 30 5e 12 00 flds 0x125e30
105e27: d9 c9 fxch %st(1)
105e29: b2 01 mov $0x1,%dl
105e2b: dd e1 fucom %st(1)
105e2d: df e0 fnstsw %ax
105e2f: dd d9 fstp %st(1)
105e31: 9e sahf
105e32: 7a 3c jp 105e70 <rtems_string_to_float+0xe0> <== NEVER TAKEN
105e34: 75 3a jne 105e70 <rtems_string_to_float+0xe0>
105e36: 08 d1 or %dl,%cl
105e38: 75 16 jne 105e50 <rtems_string_to_float+0xc0>
105e3a: d9 05 40 5e 12 00 flds 0x125e40
105e40: dd e9 fucomp %st(1)
105e42: df e0 fnstsw %ax
105e44: 9e sahf
105e45: 76 aa jbe 105df1 <rtems_string_to_float+0x61> <== NEVER TAKEN
105e47: dd d8 fstp %st(0)
105e49: eb 07 jmp 105e52 <rtems_string_to_float+0xc2>
105e4b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
105e4f: 90 nop
105e50: dd d8 fstp %st(0)
return RTEMS_INVALID_NUMBER;
105e52: b8 0a 00 00 00 mov $0xa,%eax
105e57: eb 9c jmp 105df5 <rtems_string_to_float+0x65>
105e59: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
105e60: 74 bf je 105e21 <rtems_string_to_float+0x91> <== NEVER TAKEN
105e62: eb bb jmp 105e1f <rtems_string_to_float+0x8f>
105e64: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105e6b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
105e6f: 90 nop
105e70: 31 d2 xor %edx,%edx
105e72: eb c2 jmp 105e36 <rtems_string_to_float+0xa6>
105e74: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105e7b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
105e7f: 90 nop
}
105e80: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
105e83: b8 09 00 00 00 mov $0x9,%eax
}
105e88: 8b 75 f8 mov -0x8(%ebp),%esi
105e8b: 8b 7d fc mov -0x4(%ebp),%edi
105e8e: 89 ec mov %ebp,%esp
105e90: 5d pop %ebp
105e91: c3 ret
105e92: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105e99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
105ea0: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
105ea3: b8 0b 00 00 00 mov $0xb,%eax
}
105ea8: 8b 75 f8 mov -0x8(%ebp),%esi
105eab: 8b 7d fc mov -0x4(%ebp),%edi
105eae: 89 ec mov %ebp,%esp
105eb0: 5d pop %ebp
105eb1: c3 ret
105eb2: 90 nop
105eb3: 90 nop
105eb4: 90 nop
105eb5: 90 nop
105eb6: 90 nop
105eb7: 90 nop
105eb8: 90 nop
105eb9: 90 nop
105eba: 90 nop
105ebb: 90 nop
105ebc: 90 nop
105ebd: 90 nop
105ebe: 90 nop
105ebf: 90 nop
00111dc0 <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
111dc0: 55 push %ebp
111dc1: 89 e5 mov %esp,%ebp
111dc3: 83 ec 38 sub $0x38,%esp
111dc6: 89 5d f4 mov %ebx,-0xc(%ebp)
111dc9: 8b 5d 0c mov 0xc(%ebp),%ebx
111dcc: 89 75 f8 mov %esi,-0x8(%ebp)
111dcf: 8b 75 08 mov 0x8(%ebp),%esi
111dd2: 89 7d fc mov %edi,-0x4(%ebp)
long result;
char *end;
if ( !n )
111dd5: 85 db test %ebx,%ebx
111dd7: 74 77 je 111e50 <rtems_string_to_int+0x90>
return RTEMS_INVALID_ADDRESS;
errno = 0;
111dd9: e8 12 74 04 00 call 1591f0 <__errno>
111dde: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
result = strtol( s, &end, base );
111de4: 8b 45 14 mov 0x14(%ebp),%eax
*n = 0;
111de7: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtol( s, &end, base );
111ded: 89 34 24 mov %esi,(%esp)
111df0: 89 44 24 08 mov %eax,0x8(%esp)
111df4: 8d 45 e4 lea -0x1c(%ebp),%eax
111df7: 89 44 24 04 mov %eax,0x4(%esp)
111dfb: e8 a0 b2 05 00 call 16d0a0 <strtol>
if ( endptr )
111e00: 8b 55 10 mov 0x10(%ebp),%edx
111e03: 85 d2 test %edx,%edx
result = strtol( s, &end, base );
111e05: 89 c7 mov %eax,%edi
*endptr = end;
111e07: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
111e0a: 74 05 je 111e11 <rtems_string_to_int+0x51>
*endptr = end;
111e0c: 8b 55 10 mov 0x10(%ebp),%edx
111e0f: 89 02 mov %eax,(%edx)
if ( end == s )
111e11: 39 c6 cmp %eax,%esi
111e13: 74 5b je 111e70 <rtems_string_to_int+0xb0>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
111e15: e8 d6 73 04 00 call 1591f0 <__errno>
111e1a: 83 38 22 cmpl $0x22,(%eax)
111e1d: 74 11 je 111e30 <rtems_string_to_int+0x70>
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
111e1f: 89 3b mov %edi,(%ebx)
return RTEMS_SUCCESSFUL;
111e21: 31 c0 xor %eax,%eax
}
111e23: 8b 5d f4 mov -0xc(%ebp),%ebx
111e26: 8b 75 f8 mov -0x8(%ebp),%esi
111e29: 8b 7d fc mov -0x4(%ebp),%edi
111e2c: 89 ec mov %ebp,%esp
111e2e: 5d pop %ebp
111e2f: c3 ret
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
111e30: f7 c7 ff ff ff 7f test $0x7fffffff,%edi
111e36: 74 08 je 111e40 <rtems_string_to_int+0x80>
111e38: 81 ff ff ff ff 7f cmp $0x7fffffff,%edi
111e3e: 75 df jne 111e1f <rtems_string_to_int+0x5f> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
111e40: b8 0a 00 00 00 mov $0xa,%eax
111e45: eb dc jmp 111e23 <rtems_string_to_int+0x63>
111e47: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
111e4e: 66 90 xchg %ax,%ax
}
111e50: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
111e53: b8 09 00 00 00 mov $0x9,%eax
}
111e58: 8b 75 f8 mov -0x8(%ebp),%esi
111e5b: 8b 7d fc mov -0x4(%ebp),%edi
111e5e: 89 ec mov %ebp,%esp
111e60: 5d pop %ebp
111e61: c3 ret
111e62: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
111e69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
111e70: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
111e73: b8 0b 00 00 00 mov $0xb,%eax
}
111e78: 8b 75 f8 mov -0x8(%ebp),%esi
111e7b: 8b 7d fc mov -0x4(%ebp),%edi
111e7e: 89 ec mov %ebp,%esp
111e80: 5d pop %ebp
111e81: c3 ret
111e82: 90 nop
111e83: 90 nop
111e84: 90 nop
111e85: 90 nop
111e86: 90 nop
111e87: 90 nop
111e88: 90 nop
111e89: 90 nop
111e8a: 90 nop
111e8b: 90 nop
111e8c: 90 nop
111e8d: 90 nop
111e8e: 90 nop
111e8f: 90 nop
00105f90 <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
105f90: 55 push %ebp
105f91: 89 e5 mov %esp,%ebp
105f93: 83 ec 38 sub $0x38,%esp
105f96: 89 5d f4 mov %ebx,-0xc(%ebp)
105f99: 8b 5d 0c mov 0xc(%ebp),%ebx
105f9c: 89 75 f8 mov %esi,-0x8(%ebp)
105f9f: 8b 75 08 mov 0x8(%ebp),%esi
105fa2: 89 7d fc mov %edi,-0x4(%ebp)
long result;
char *end;
if ( !n )
105fa5: 85 db test %ebx,%ebx
105fa7: 74 77 je 106020 <rtems_string_to_long+0x90> <== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
errno = 0;
105fa9: e8 32 49 01 00 call 11a8e0 <__errno>
105fae: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
result = strtol( s, &end, base );
105fb4: 8b 45 14 mov 0x14(%ebp),%eax
*n = 0;
105fb7: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtol( s, &end, base );
105fbd: 89 34 24 mov %esi,(%esp)
105fc0: 89 44 24 08 mov %eax,0x8(%esp)
105fc4: 8d 45 e4 lea -0x1c(%ebp),%eax
105fc7: 89 44 24 04 mov %eax,0x4(%esp)
105fcb: e8 c0 6e 01 00 call 11ce90 <strtol>
if ( endptr )
105fd0: 8b 55 10 mov 0x10(%ebp),%edx
105fd3: 85 d2 test %edx,%edx
result = strtol( s, &end, base );
105fd5: 89 c7 mov %eax,%edi
*endptr = end;
105fd7: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
105fda: 74 05 je 105fe1 <rtems_string_to_long+0x51>
*endptr = end;
105fdc: 8b 55 10 mov 0x10(%ebp),%edx
105fdf: 89 02 mov %eax,(%edx)
if ( end == s )
105fe1: 39 c6 cmp %eax,%esi
105fe3: 74 5b je 106040 <rtems_string_to_long+0xb0> <== NEVER TAKEN
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
105fe5: e8 f6 48 01 00 call 11a8e0 <__errno>
105fea: 83 38 22 cmpl $0x22,(%eax)
105fed: 74 11 je 106000 <rtems_string_to_long+0x70> <== NEVER TAKEN
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
105fef: 89 3b mov %edi,(%ebx)
return RTEMS_SUCCESSFUL;
105ff1: 31 c0 xor %eax,%eax
}
105ff3: 8b 5d f4 mov -0xc(%ebp),%ebx
105ff6: 8b 75 f8 mov -0x8(%ebp),%esi
105ff9: 8b 7d fc mov -0x4(%ebp),%edi
105ffc: 89 ec mov %ebp,%esp
105ffe: 5d pop %ebp
105fff: c3 ret
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
106000: f7 c7 ff ff ff 7f test $0x7fffffff,%edi
106006: 74 08 je 106010 <rtems_string_to_long+0x80>
106008: 81 ff ff ff ff 7f cmp $0x7fffffff,%edi
10600e: 75 df jne 105fef <rtems_string_to_long+0x5f> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
106010: b8 0a 00 00 00 mov $0xa,%eax
106015: eb dc jmp 105ff3 <rtems_string_to_long+0x63>
106017: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
10601e: 66 90 xchg %ax,%ax
}
106020: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
106023: b8 09 00 00 00 mov $0x9,%eax
}
106028: 8b 75 f8 mov -0x8(%ebp),%esi
10602b: 8b 7d fc mov -0x4(%ebp),%edi
10602e: 89 ec mov %ebp,%esp
106030: 5d pop %ebp
106031: c3 ret
106032: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106039: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106040: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
106043: b8 0b 00 00 00 mov $0xb,%eax
}
106048: 8b 75 f8 mov -0x8(%ebp),%esi
10604b: 8b 7d fc mov -0x4(%ebp),%edi
10604e: 89 ec mov %ebp,%esp
106050: 5d pop %ebp
106051: c3 ret
106052: 90 nop
106053: 90 nop
106054: 90 nop
106055: 90 nop
106056: 90 nop
106057: 90 nop
106058: 90 nop
106059: 90 nop
10605a: 90 nop
10605b: 90 nop
10605c: 90 nop
10605d: 90 nop
10605e: 90 nop
10605f: 90 nop
00106060 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
106060: 55 push %ebp
106061: 89 e5 mov %esp,%ebp
106063: 83 ec 38 sub $0x38,%esp
106066: 89 5d f4 mov %ebx,-0xc(%ebp)
106069: 8b 5d 0c mov 0xc(%ebp),%ebx
10606c: 89 75 f8 mov %esi,-0x8(%ebp)
10606f: 89 7d fc mov %edi,-0x4(%ebp)
long long result;
char *end;
if ( !n )
106072: 85 db test %ebx,%ebx
106074: 0f 84 a6 00 00 00 je 106120 <rtems_string_to_long_long+0xc0>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10607a: e8 61 48 01 00 call 11a8e0 <__errno>
10607f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
result = strtoll( s, &end, base );
106085: 8b 45 14 mov 0x14(%ebp),%eax
*n = 0;
106088: c7 03 00 00 00 00 movl $0x0,(%ebx)
10608e: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoll( s, &end, base );
106095: 89 44 24 08 mov %eax,0x8(%esp)
106099: 8d 45 e4 lea -0x1c(%ebp),%eax
10609c: 89 44 24 04 mov %eax,0x4(%esp)
1060a0: 8b 45 08 mov 0x8(%ebp),%eax
1060a3: 89 04 24 mov %eax,(%esp)
1060a6: e8 15 71 01 00 call 11d1c0 <strtoll>
1060ab: 89 d7 mov %edx,%edi
if ( endptr )
1060ad: 8b 55 10 mov 0x10(%ebp),%edx
result = strtoll( s, &end, base );
1060b0: 89 c6 mov %eax,%esi
*endptr = end;
1060b2: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
1060b5: 85 d2 test %edx,%edx
1060b7: 74 05 je 1060be <rtems_string_to_long_long+0x5e>
*endptr = end;
1060b9: 8b 4d 10 mov 0x10(%ebp),%ecx
1060bc: 89 01 mov %eax,(%ecx)
if ( end == s )
1060be: 39 45 08 cmp %eax,0x8(%ebp)
1060c1: 74 7d je 106140 <rtems_string_to_long_long+0xe0>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1060c3: e8 18 48 01 00 call 11a8e0 <__errno>
1060c8: 83 38 22 cmpl $0x22,(%eax)
1060cb: 74 23 je 1060f0 <rtems_string_to_long_long+0x90>
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
1060cd: 89 33 mov %esi,(%ebx)
return RTEMS_SUCCESSFUL;
1060cf: 31 c0 xor %eax,%eax
*n = result;
1060d1: 89 7b 04 mov %edi,0x4(%ebx)
}
1060d4: 8b 5d f4 mov -0xc(%ebp),%ebx
1060d7: 8b 75 f8 mov -0x8(%ebp),%esi
1060da: 8b 7d fc mov -0x4(%ebp),%edi
1060dd: 89 ec mov %ebp,%esp
1060df: 5d pop %ebp
1060e0: c3 ret
1060e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1060e8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1060ef: 90 nop
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
1060f0: 89 f8 mov %edi,%eax
1060f2: 25 ff ff ff 7f and $0x7fffffff,%eax
1060f7: 09 f0 or %esi,%eax
1060f9: 74 10 je 10610b <rtems_string_to_long_long+0xab>
1060fb: 89 fa mov %edi,%edx
1060fd: 89 f0 mov %esi,%eax
1060ff: 81 f2 ff ff ff 7f xor $0x7fffffff,%edx
106105: f7 d0 not %eax
106107: 09 d0 or %edx,%eax
106109: 75 c2 jne 1060cd <rtems_string_to_long_long+0x6d> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
10610b: b8 0a 00 00 00 mov $0xa,%eax
106110: eb c2 jmp 1060d4 <rtems_string_to_long_long+0x74>
106112: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106119: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
}
106120: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
106123: b8 09 00 00 00 mov $0x9,%eax
}
106128: 8b 75 f8 mov -0x8(%ebp),%esi
10612b: 8b 7d fc mov -0x4(%ebp),%edi
10612e: 89 ec mov %ebp,%esp
106130: 5d pop %ebp
106131: c3 ret
106132: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106139: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106140: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
106143: b8 0b 00 00 00 mov $0xb,%eax
}
106148: 8b 75 f8 mov -0x8(%ebp),%esi
10614b: 8b 7d fc mov -0x4(%ebp),%edi
10614e: 89 ec mov %ebp,%esp
106150: 5d pop %ebp
106151: c3 ret
106152: 90 nop
106153: 90 nop
106154: 90 nop
106155: 90 nop
106156: 90 nop
106157: 90 nop
106158: 90 nop
106159: 90 nop
10615a: 90 nop
10615b: 90 nop
10615c: 90 nop
10615d: 90 nop
10615e: 90 nop
10615f: 90 nop
00111ec0 <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
111ec0: 55 push %ebp
111ec1: 89 e5 mov %esp,%ebp
111ec3: 83 ec 48 sub $0x48,%esp
111ec6: 89 5d f4 mov %ebx,-0xc(%ebp)
111ec9: 8b 5d 0c mov 0xc(%ebp),%ebx
111ecc: 89 75 f8 mov %esi,-0x8(%ebp)
111ecf: 8b 75 08 mov 0x8(%ebp),%esi
111ed2: 89 7d fc mov %edi,-0x4(%ebp)
111ed5: 8b 7d 10 mov 0x10(%ebp),%edi
unsigned long result;
char *end;
if ( !n )
111ed8: 85 db test %ebx,%ebx
111eda: 74 74 je 111f50 <rtems_string_to_unsigned_char+0x90>
return RTEMS_INVALID_ADDRESS;
errno = 0;
111edc: e8 0f 73 04 00 call 1591f0 <__errno>
111ee1: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
*n = 0;
result = strtoul( s, &end, base );
111ee7: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
*n = 0;
111eea: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
result = strtoul( s, &end, base );
111eed: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
111ef0: 89 44 24 08 mov %eax,0x8(%esp) <== NOT EXECUTED
111ef4: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
111ef7: 89 44 24 04 mov %eax,0x4(%esp) <== NOT EXECUTED
111efb: e8 70 b7 05 00 call 16d670 <strtoul> <== NOT EXECUTED
if ( endptr )
111f00: 85 ff test %edi,%edi
result = strtoul( s, &end, base );
111f02: 89 c2 mov %eax,%edx
*endptr = end;
111f04: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
111f07: 74 02 je 111f0b <rtems_string_to_unsigned_char+0x4b>
*endptr = end;
111f09: 89 07 mov %eax,(%edi)
111f0b: 89 55 d4 mov %edx,-0x2c(%ebp)
if ( end == s )
111f0e: 39 c6 cmp %eax,%esi
111f10: 74 5e je 111f70 <rtems_string_to_unsigned_char+0xb0>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
111f12: e8 d9 72 04 00 call 1591f0 <__errno>
111f17: 8b 55 d4 mov -0x2c(%ebp),%edx
111f1a: 83 38 22 cmpl $0x22,(%eax)
111f1d: 74 21 je 111f40 <rtems_string_to_unsigned_char+0x80>
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
#if (UCHAR_MAX < ULONG_MAX)
if ( result > UCHAR_MAX ) {
111f1f: 81 fa ff 00 00 00 cmp $0xff,%edx
111f25: 77 69 ja 111f90 <rtems_string_to_unsigned_char+0xd0>
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
111f27: 88 13 mov %dl,(%ebx)
return RTEMS_SUCCESSFUL;
111f29: 31 c0 xor %eax,%eax
}
111f2b: 8b 5d f4 mov -0xc(%ebp),%ebx
111f2e: 8b 75 f8 mov -0x8(%ebp),%esi
111f31: 8b 7d fc mov -0x4(%ebp),%edi
111f34: 89 ec mov %ebp,%esp
111f36: 5d pop %ebp
111f37: c3 ret
111f38: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
111f3f: 90 nop
(( result == 0 ) || ( result == ULONG_MAX )))
111f40: 8d 42 ff lea -0x1(%edx),%eax
if ( ( errno == ERANGE ) &&
111f43: 83 f8 fd cmp $0xfffffffd,%eax
111f46: 76 d7 jbe 111f1f <rtems_string_to_unsigned_char+0x5f> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
111f48: b8 0a 00 00 00 mov $0xa,%eax
111f4d: eb dc jmp 111f2b <rtems_string_to_unsigned_char+0x6b>
111f4f: 90 nop
}
111f50: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
111f53: b8 09 00 00 00 mov $0x9,%eax
}
111f58: 8b 75 f8 mov -0x8(%ebp),%esi
111f5b: 8b 7d fc mov -0x4(%ebp),%edi
111f5e: 89 ec mov %ebp,%esp
111f60: 5d pop %ebp
111f61: c3 ret
111f62: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
111f69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
111f70: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
111f73: b8 0b 00 00 00 mov $0xb,%eax
}
111f78: 8b 75 f8 mov -0x8(%ebp),%esi
111f7b: 8b 7d fc mov -0x4(%ebp),%edi
111f7e: 89 ec mov %ebp,%esp
111f80: 5d pop %ebp
111f81: c3 ret
111f82: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
111f89: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
errno = ERANGE;
111f90: e8 5b 72 04 00 call 1591f0 <__errno>
111f95: c7 00 22 00 00 00 movl $0x22,(%eax)
return RTEMS_INVALID_NUMBER;
111f9b: b8 0a 00 00 00 mov $0xa,%eax
111fa0: eb 89 jmp 111f2b <rtems_string_to_unsigned_char+0x6b>
111fa2: 90 nop
111fa3: 90 nop
111fa4: 90 nop
111fa5: 90 nop
111fa6: 90 nop
111fa7: 90 nop
111fa8: 90 nop
111fa9: 90 nop
111faa: 90 nop
111fab: 90 nop
111fac: 90 nop
111fad: 90 nop
111fae: 90 nop
111faf: 90 nop
00106280 <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
106280: 55 push %ebp
106281: 89 e5 mov %esp,%ebp
106283: 83 ec 38 sub $0x38,%esp
106286: 89 5d f4 mov %ebx,-0xc(%ebp)
106289: 8b 5d 0c mov 0xc(%ebp),%ebx
10628c: 89 75 f8 mov %esi,-0x8(%ebp)
10628f: 8b 75 08 mov 0x8(%ebp),%esi
106292: 89 7d fc mov %edi,-0x4(%ebp)
unsigned long result;
char *end;
if ( !n )
106295: 85 db test %ebx,%ebx
106297: 74 67 je 106300 <rtems_string_to_unsigned_int+0x80>
return RTEMS_INVALID_ADDRESS;
errno = 0;
106299: e8 42 46 01 00 call 11a8e0 <__errno>
10629e: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
result = strtoul( s, &end, base );
1062a4: 8b 45 14 mov 0x14(%ebp),%eax
*n = 0;
1062a7: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
1062ad: 89 34 24 mov %esi,(%esp)
1062b0: 89 44 24 08 mov %eax,0x8(%esp)
1062b4: 8d 45 e4 lea -0x1c(%ebp),%eax
1062b7: 89 44 24 04 mov %eax,0x4(%esp)
1062bb: e8 30 71 01 00 call 11d3f0 <strtoul>
if ( endptr )
1062c0: 8b 55 10 mov 0x10(%ebp),%edx
1062c3: 85 d2 test %edx,%edx
result = strtoul( s, &end, base );
1062c5: 89 c7 mov %eax,%edi
*endptr = end;
1062c7: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
1062ca: 74 05 je 1062d1 <rtems_string_to_unsigned_int+0x51>
*endptr = end;
1062cc: 8b 55 10 mov 0x10(%ebp),%edx
1062cf: 89 02 mov %eax,(%edx)
if ( end == s )
1062d1: 39 c6 cmp %eax,%esi
1062d3: 74 4b je 106320 <rtems_string_to_unsigned_int+0xa0>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1062d5: e8 06 46 01 00 call 11a8e0 <__errno>
1062da: 83 38 22 cmpl $0x22,(%eax)
1062dd: 74 11 je 1062f0 <rtems_string_to_unsigned_int+0x70>
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
1062df: 89 3b mov %edi,(%ebx)
return RTEMS_SUCCESSFUL;
1062e1: 31 c0 xor %eax,%eax
}
1062e3: 8b 5d f4 mov -0xc(%ebp),%ebx
1062e6: 8b 75 f8 mov -0x8(%ebp),%esi
1062e9: 8b 7d fc mov -0x4(%ebp),%edi
1062ec: 89 ec mov %ebp,%esp
1062ee: 5d pop %ebp
1062ef: c3 ret
(( result == 0 ) || ( result == ULONG_MAX )))
1062f0: 8d 47 ff lea -0x1(%edi),%eax
if ( ( errno == ERANGE ) &&
1062f3: 83 f8 fd cmp $0xfffffffd,%eax
1062f6: 76 e7 jbe 1062df <rtems_string_to_unsigned_int+0x5f> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
1062f8: b8 0a 00 00 00 mov $0xa,%eax
1062fd: eb e4 jmp 1062e3 <rtems_string_to_unsigned_int+0x63>
1062ff: 90 nop
}
106300: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
106303: b8 09 00 00 00 mov $0x9,%eax
}
106308: 8b 75 f8 mov -0x8(%ebp),%esi
10630b: 8b 7d fc mov -0x4(%ebp),%edi
10630e: 89 ec mov %ebp,%esp
106310: 5d pop %ebp
106311: c3 ret
106312: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106319: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106320: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
106323: b8 0b 00 00 00 mov $0xb,%eax
}
106328: 8b 75 f8 mov -0x8(%ebp),%esi
10632b: 8b 7d fc mov -0x4(%ebp),%edi
10632e: 89 ec mov %ebp,%esp
106330: 5d pop %ebp
106331: c3 ret
106332: 90 nop
106333: 90 nop
106334: 90 nop
106335: 90 nop
106336: 90 nop
106337: 90 nop
106338: 90 nop
106339: 90 nop
10633a: 90 nop
10633b: 90 nop
10633c: 90 nop
10633d: 90 nop
10633e: 90 nop
10633f: 90 nop
00111fb0 <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
111fb0: 55 push %ebp
111fb1: 89 e5 mov %esp,%ebp
111fb3: 83 ec 38 sub $0x38,%esp
111fb6: 89 5d f4 mov %ebx,-0xc(%ebp)
111fb9: 8b 5d 0c mov 0xc(%ebp),%ebx
111fbc: 89 75 f8 mov %esi,-0x8(%ebp)
111fbf: 8b 75 08 mov 0x8(%ebp),%esi
111fc2: 89 7d fc mov %edi,-0x4(%ebp)
unsigned long result;
char *end;
if ( !n )
111fc5: 85 db test %ebx,%ebx
111fc7: 74 67 je 112030 <rtems_string_to_unsigned_long+0x80>
return RTEMS_INVALID_ADDRESS;
errno = 0;
111fc9: e8 22 72 04 00 call 1591f0 <__errno>
111fce: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
result = strtoul( s, &end, base );
111fd4: 8b 45 14 mov 0x14(%ebp),%eax
*n = 0;
111fd7: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
111fdd: 89 34 24 mov %esi,(%esp)
111fe0: 89 44 24 08 mov %eax,0x8(%esp)
111fe4: 8d 45 e4 lea -0x1c(%ebp),%eax
111fe7: 89 44 24 04 mov %eax,0x4(%esp)
111feb: e8 80 b6 05 00 call 16d670 <strtoul>
if ( endptr )
111ff0: 8b 55 10 mov 0x10(%ebp),%edx
111ff3: 85 d2 test %edx,%edx
result = strtoul( s, &end, base );
111ff5: 89 c7 mov %eax,%edi
*endptr = end;
111ff7: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
111ffa: 74 05 je 112001 <rtems_string_to_unsigned_long+0x51>
*endptr = end;
111ffc: 8b 55 10 mov 0x10(%ebp),%edx
111fff: 89 02 mov %eax,(%edx)
if ( end == s )
112001: 39 c6 cmp %eax,%esi
112003: 74 4b je 112050 <rtems_string_to_unsigned_long+0xa0>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
112005: e8 e6 71 04 00 call 1591f0 <__errno>
11200a: 83 38 22 cmpl $0x22,(%eax)
11200d: 74 11 je 112020 <rtems_string_to_unsigned_long+0x70>
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
11200f: 89 3b mov %edi,(%ebx)
return RTEMS_SUCCESSFUL;
112011: 31 c0 xor %eax,%eax
}
112013: 8b 5d f4 mov -0xc(%ebp),%ebx
112016: 8b 75 f8 mov -0x8(%ebp),%esi
112019: 8b 7d fc mov -0x4(%ebp),%edi
11201c: 89 ec mov %ebp,%esp
11201e: 5d pop %ebp
11201f: c3 ret
(( result == 0 ) || ( result == ULONG_MAX )))
112020: 8d 47 ff lea -0x1(%edi),%eax
if ( ( errno == ERANGE ) &&
112023: 83 f8 fd cmp $0xfffffffd,%eax
112026: 76 e7 jbe 11200f <rtems_string_to_unsigned_long+0x5f> <== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
112028: b8 0a 00 00 00 mov $0xa,%eax
11202d: eb e4 jmp 112013 <rtems_string_to_unsigned_long+0x63>
11202f: 90 nop
}
112030: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
112033: b8 09 00 00 00 mov $0x9,%eax
}
112038: 8b 75 f8 mov -0x8(%ebp),%esi
11203b: 8b 7d fc mov -0x4(%ebp),%edi
11203e: 89 ec mov %ebp,%esp
112040: 5d pop %ebp
112041: c3 ret
112042: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
112049: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
112050: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
112053: b8 0b 00 00 00 mov $0xb,%eax
}
112058: 8b 75 f8 mov -0x8(%ebp),%esi
11205b: 8b 7d fc mov -0x4(%ebp),%edi
11205e: 89 ec mov %ebp,%esp
112060: 5d pop %ebp
112061: c3 ret
112062: 90 nop
112063: 90 nop
112064: 90 nop
112065: 90 nop
112066: 90 nop
112067: 90 nop
112068: 90 nop
112069: 90 nop
11206a: 90 nop
11206b: 90 nop
11206c: 90 nop
11206d: 90 nop
11206e: 90 nop
11206f: 90 nop
00106400 <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
106400: 55 push %ebp
106401: 89 e5 mov %esp,%ebp
106403: 83 ec 48 sub $0x48,%esp
106406: 89 5d f4 mov %ebx,-0xc(%ebp)
106409: 8b 5d 0c mov 0xc(%ebp),%ebx
10640c: 89 75 f8 mov %esi,-0x8(%ebp)
10640f: 89 7d fc mov %edi,-0x4(%ebp)
unsigned long long result;
char *end;
if ( !n )
106412: 85 db test %ebx,%ebx
106414: 0f 84 a6 00 00 00 je 1064c0 <rtems_string_to_unsigned_long_long+0xc0>
return RTEMS_INVALID_ADDRESS;
errno = 0;
10641a: e8 c1 44 01 00 call 11a8e0 <__errno>
10641f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
result = strtoull( s, &end, base );
106425: 8b 45 14 mov 0x14(%ebp),%eax
*n = 0;
106428: c7 03 00 00 00 00 movl $0x0,(%ebx)
10642e: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoull( s, &end, base );
106435: 89 44 24 08 mov %eax,0x8(%esp)
106439: 8d 45 e4 lea -0x1c(%ebp),%eax
10643c: 89 44 24 04 mov %eax,0x4(%esp)
106440: 8b 45 08 mov 0x8(%ebp),%eax
106443: 89 04 24 mov %eax,(%esp)
106446: e8 25 73 01 00 call 11d770 <strtoull>
10644b: 89 d7 mov %edx,%edi
if ( endptr )
10644d: 8b 55 10 mov 0x10(%ebp),%edx
result = strtoull( s, &end, base );
106450: 89 c6 mov %eax,%esi
*endptr = end;
106452: 8b 45 e4 mov -0x1c(%ebp),%eax
if ( endptr )
106455: 85 d2 test %edx,%edx
106457: 74 05 je 10645e <rtems_string_to_unsigned_long_long+0x5e>
*endptr = end;
106459: 8b 55 10 mov 0x10(%ebp),%edx
10645c: 89 02 mov %eax,(%edx)
if ( end == s )
10645e: 39 45 08 cmp %eax,0x8(%ebp)
106461: 74 7d je 1064e0 <rtems_string_to_unsigned_long_long+0xe0>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
106463: e8 78 44 01 00 call 11a8e0 <__errno>
106468: 83 38 22 cmpl $0x22,(%eax)
10646b: 74 23 je 106490 <rtems_string_to_unsigned_long_long+0x90>
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
10646d: 89 33 mov %esi,(%ebx)
return RTEMS_SUCCESSFUL;
10646f: 31 c0 xor %eax,%eax
*n = result;
106471: 89 7b 04 mov %edi,0x4(%ebx)
}
106474: 8b 5d f4 mov -0xc(%ebp),%ebx
106477: 8b 75 f8 mov -0x8(%ebp),%esi
10647a: 8b 7d fc mov -0x4(%ebp),%edi
10647d: 89 ec mov %ebp,%esp
10647f: 5d pop %ebp
106480: c3 ret
106481: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
106488: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
10648f: 90 nop
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
106490: 89 f0 mov %esi,%eax
106492: 89 fa mov %edi,%edx
106494: 83 c0 ff add $0xffffffff,%eax
if ( ( errno == ERANGE ) &&
106497: b9 fd ff ff ff mov $0xfffffffd,%ecx
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
10649c: 89 45 d0 mov %eax,-0x30(%ebp)
10649f: 83 d2 ff adc $0xffffffff,%edx
if ( ( errno == ERANGE ) &&
1064a2: b8 ff ff ff ff mov $0xffffffff,%eax
1064a7: 3b 4d d0 cmp -0x30(%ebp),%ecx
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
1064aa: 89 55 d4 mov %edx,-0x2c(%ebp)
if ( ( errno == ERANGE ) &&
1064ad: 1b 45 d4 sbb -0x2c(%ebp),%eax
1064b0: 73 bb jae 10646d <rtems_string_to_unsigned_long_long+0x6d><== NEVER TAKEN
return RTEMS_INVALID_NUMBER;
1064b2: b8 0a 00 00 00 mov $0xa,%eax
1064b7: eb bb jmp 106474 <rtems_string_to_unsigned_long_long+0x74>
1064b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
}
1064c0: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_INVALID_ADDRESS;
1064c3: b8 09 00 00 00 mov $0x9,%eax
}
1064c8: 8b 75 f8 mov -0x8(%ebp),%esi
1064cb: 8b 7d fc mov -0x4(%ebp),%edi
1064ce: 89 ec mov %ebp,%esp
1064d0: 5d pop %ebp
1064d1: c3 ret
1064d2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1064d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1064e0: 8b 5d f4 mov -0xc(%ebp),%ebx
return RTEMS_NOT_DEFINED;
1064e3: b8 0b 00 00 00 mov $0xb,%eax
}
1064e8: 8b 75 f8 mov -0x8(%ebp),%esi
1064eb: 8b 7d fc mov -0x4(%ebp),%edi
1064ee: 89 ec mov %ebp,%esp
1064f0: 5d pop %ebp
1064f1: c3 ret
1064f2: 90 nop
1064f3: 90 nop
1064f4: 90 nop
1064f5: 90 nop
1064f6: 90 nop
1064f7: 90 nop
1064f8: 90 nop
1064f9: 90 nop
1064fa: 90 nop
1064fb: 90 nop
1064fc: 90 nop
1064fd: 90 nop
1064fe: 90 nop
1064ff: 90 nop