]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r269077 (sbruno): libstand qdivrem warning fixes
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 4 Sep 2014 20:49:11 +0000 (20:49 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 4 Sep 2014 20:49:11 +0000 (20:49 +0000)
commitc70c775e937f9a0dfcb6f030bdbcedbcf0acc9c0
treebdada9fef57b9f000f0a24af6e1368b41c1e1a8a
parentea381bd58e774b71976c93d090de36ba66de00b7
MFC r269077 (sbruno): libstand qdivrem warning fixes

  libstand's qdivrem.c assumes that sizeof(int) == sizeof(long), this is not
  true on amd64 I'm not quite positive this is the "correct" solution for
  this but it does seem to compile and shut up the spew of warnings when
  compiling libstand for userboot.

  Add two _Static_asserts() so that in the future somebody will get a compile
  failure if an architecture develops that violates the assumptions of this
  code. (strongly suggested by jmg)

  Change commetns to indicate int types instead of long.  (noted by ian in
  phabric review)

  Phabric:    https://phabric.freebsd.org/D443

git-svn-id: svn://svn.freebsd.org/base/stable/10@271134 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libstand/qdivrem.c
lib/libstand/quad.h