这些值为多少呢?

noall 2001-10-22 11:57:06
#define SIN_MAX (*((const double *) hex_sin_max))
#define SIN_EPS (*((const double *) hex_sin_eps))
#define HD_INIT(hi,lo) { lo, hi }
static const unsigned long
hex_sin_max[2] = HD_INIT(0x41B1C583,0x1A000000),
hex_sin_eps[2] = HD_INIT(0x3E46A09E,0x667F3BCD),
那sin_max,SIN_EPS是为多少呢?
...全文
115 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
liu_feng_fly 2001-10-22
  • 打赏
  • 举报
回复
两个unsigned long加起来正好是double,明白了吗?
noall 2001-10-22
  • 打赏
  • 举报
回复
HD_INIT是这样的/* This macro is used to initialize a two element array of UInt32s
* which will be accessed as a double. This allows for the exact bit
* pattern of a double to be entered as a constant into the source.
* HD_INIT stands for hexadecimal_double_initialization.
*/
#ifdef INTEL
#define HD_INIT(hi,lo) { lo, hi }
#else /* MOTOROLA */
#define HD_INIT(hi,lo) { hi, lo }
#endif
liu_feng_fly 2001-10-22
  • 打赏
  • 举报
回复
sin_max,SIN_EPS是宏啊,(*((const double *) hex_sin_max))这个不是很清楚了吗?SIN_MAX是把数组hex_sin_max看成const double数组之后的第一个值,因为不知道HD_INIT是什么,所以我也不好说
noall 2001-10-22
  • 打赏
  • 举报
回复
呵呵.对啊打印出来就行了.......
chaosbird 2001-10-22
  • 打赏
  • 举报
回复
打印出来看得了
noall 2001-10-22
  • 打赏
  • 举报
回复
那sin_max,SIN_EPS是为多少呢

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧