Did any compiler fully use 80-bit floating point? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)128-bit floating pointAre there any articles elucidating the history of the POPCOUNT instruction?How adequate would 48-bit floating point be?Why not use fractions instead of floating point?Floating Point on Konrad Zuse's computersWhich pre-IEEE computers had a single precision FPU and implemented double precision floats in software?Commodore BASIC and binary floating point precisionHow was dataflow analysis performed before SSA?Did any early computers use a different radix to improve accuracy of rational arithmetic?Why did some early computer designers eschew integers?

Why wasn't DOSKEY integrated with COMMAND.COM?

Find 108 by using 3,4,6

Why do we bend a book to keep it straight?

How would a mousetrap for use in space work?

Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

How do I find out the mythology and history of my Fortress?

Maximum summed subsequences with non-adjacent items

Performance gap between vector<bool> and array

Hangman Game with C++

How much damage would a cupful of neutron star matter do to the Earth?

Do wooden building fires get hotter than 600°C?

Time to Settle Down!

How does the secondary effect of the Heat Metal spell interact with a creature resistant/immune to fire damage?

Is there a kind of relay that only consumes power when switching?

Is it a good idea to use CNN to classify 1D signal?

How do living politicians protect their readily obtainable signatures from misuse?

SF book about people trapped in a series of worlds they imagine

Did any compiler fully use 80-bit floating point?

What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?

How come Sam didn't become Lord of Horn Hill?

Can anything be seen from the center of the Boötes void? How dark would it be?

Triggering an ultrasonic sensor

How fail-safe is nr as stop bytes?



Did any compiler fully use 80-bit floating point?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)128-bit floating pointAre there any articles elucidating the history of the POPCOUNT instruction?How adequate would 48-bit floating point be?Why not use fractions instead of floating point?Floating Point on Konrad Zuse's computersWhich pre-IEEE computers had a single precision FPU and implemented double precision floats in software?Commodore BASIC and binary floating point precisionHow was dataflow analysis performed before SSA?Did any early computers use a different radix to improve accuracy of rational arithmetic?Why did some early computer designers eschew integers?










6















There is a paradox about floating point that I'm trying to understand.



Floating point is an eternal struggle with the problem that real numbers are both essential and incomputable. It's the best solution we have for most calculations involving physical quantities, but has the perennial problems of limited precision and range; many volumes have been written about how to deal with these problems, even down to hardware engineers getting headaches implementing support for subnormal numbers, only to have programmers promptly turning this off because it kills performance on workloads where many numbers iterate to zero. (The usual reference here is the introductory document What every computer scientist should know about floating-point arithmetic, but for a more in-depth discussion, it's worth reading the writings of William Kahan, one of the world's foremost experts on the topic, and a very clear writer.)



The usual standard for floating point where substantial precision is required is IEEE-745 double precision, 64 bits. It's the best most hardware provides; doing even slightly better typically requires switching to a software solution for a dramatic slowdown.



The x87 went one better and provided extended precision, 80 bits. A Google search finds many articles about this, and almost all of them lament the problem that when compilers spill temporaries from registers to memory, they round to 64 bits, so the exact results very quasi-randomly depending on the behavior of the optimizer, which admittedly is a problem indeed.



The obvious solution is for the in-memory format to be also 80 bits, so that you get both extended precision and consistency. But I have not encountered any mention, ever, of this being used. It's moot now that one uses SSE2 which doesn't provide extended precision, but I would expect it to have been used in the days when x87 was the available floating-point instruction set.



The paradox is this: on the one hand, there is much discussion of limited precision being a big problem. On the other hand, Intel provided a solution with an extra eleven bits of precision and five bits of exponent, that would cost very little performance to use (since the hardware implemented it whether you used it or not), and yet everyone seemed to behave as though this had no value, and to positively celebrate the move to SSE2 where extended precision is no longer available.



So my question is:



Did any compilers ever make full use of extended precision (i.e. 80 bits in memory as well as in registers)? If not, why not?










share|improve this question



















  • 1





    Heh exactly what I was thinking the other day while trying to debug my 128 bit floating point class and was comparing hex output with something working like 32 bit float, 64 bit double and 80 bit long double In my compiler (Borland/Embarcadero) the last is supported for computation (but its unstable for heavy use as it can cause crashes probably due to fact the compiler I use is old 2006 on newer CPU and HW FPU could changed since) but the compiler itself truncate constants to 32/64 bit so it is not the same if you write a=1.0/3.0; or a=1.0; b=3.0; a=a/b; the latter is more precise.

    – Spektre
    2 hours ago






  • 1





    @Spektre It’s been many years since I used Borland Turbo C, but that’s correct behavior. The literal constants 1.0 and 3.0 have type double, so 1.0/3.0 is computed with only double precision, then padded to the length of a long double when it is implicitly converted. You could get full precision by writing a = 1.0L/3.0L;.

    – Davislor
    1 hour ago







  • 1





    @Davislor Its not the ancient Borland Turbo C++ but BDS2006 win32 compiler with VCL I can see this: 0.3 is 64 bit, 0.3f is 32 bit and 0.3l or 0.3L is 64 bit so no 80bit ... just 52+1 bits of mantissa for direct constants

    – Spektre
    1 hour ago







  • 1





    Checking with godbolt.org, GCC, Clang and ICC all perform 80-bit math and 80-bit memory stores with long double variables.

    – Davislor
    1 hour ago






  • 1





    @lvd Sure, going back to x87 now and foregoing vector operations would be a big performance hit as you say. I was talking about the historical context before SSE2 was invented.

    – rwallace
    13 mins ago















6















There is a paradox about floating point that I'm trying to understand.



Floating point is an eternal struggle with the problem that real numbers are both essential and incomputable. It's the best solution we have for most calculations involving physical quantities, but has the perennial problems of limited precision and range; many volumes have been written about how to deal with these problems, even down to hardware engineers getting headaches implementing support for subnormal numbers, only to have programmers promptly turning this off because it kills performance on workloads where many numbers iterate to zero. (The usual reference here is the introductory document What every computer scientist should know about floating-point arithmetic, but for a more in-depth discussion, it's worth reading the writings of William Kahan, one of the world's foremost experts on the topic, and a very clear writer.)



The usual standard for floating point where substantial precision is required is IEEE-745 double precision, 64 bits. It's the best most hardware provides; doing even slightly better typically requires switching to a software solution for a dramatic slowdown.



The x87 went one better and provided extended precision, 80 bits. A Google search finds many articles about this, and almost all of them lament the problem that when compilers spill temporaries from registers to memory, they round to 64 bits, so the exact results very quasi-randomly depending on the behavior of the optimizer, which admittedly is a problem indeed.



The obvious solution is for the in-memory format to be also 80 bits, so that you get both extended precision and consistency. But I have not encountered any mention, ever, of this being used. It's moot now that one uses SSE2 which doesn't provide extended precision, but I would expect it to have been used in the days when x87 was the available floating-point instruction set.



The paradox is this: on the one hand, there is much discussion of limited precision being a big problem. On the other hand, Intel provided a solution with an extra eleven bits of precision and five bits of exponent, that would cost very little performance to use (since the hardware implemented it whether you used it or not), and yet everyone seemed to behave as though this had no value, and to positively celebrate the move to SSE2 where extended precision is no longer available.



So my question is:



Did any compilers ever make full use of extended precision (i.e. 80 bits in memory as well as in registers)? If not, why not?










share|improve this question



















  • 1





    Heh exactly what I was thinking the other day while trying to debug my 128 bit floating point class and was comparing hex output with something working like 32 bit float, 64 bit double and 80 bit long double In my compiler (Borland/Embarcadero) the last is supported for computation (but its unstable for heavy use as it can cause crashes probably due to fact the compiler I use is old 2006 on newer CPU and HW FPU could changed since) but the compiler itself truncate constants to 32/64 bit so it is not the same if you write a=1.0/3.0; or a=1.0; b=3.0; a=a/b; the latter is more precise.

    – Spektre
    2 hours ago






  • 1





    @Spektre It’s been many years since I used Borland Turbo C, but that’s correct behavior. The literal constants 1.0 and 3.0 have type double, so 1.0/3.0 is computed with only double precision, then padded to the length of a long double when it is implicitly converted. You could get full precision by writing a = 1.0L/3.0L;.

    – Davislor
    1 hour ago







  • 1





    @Davislor Its not the ancient Borland Turbo C++ but BDS2006 win32 compiler with VCL I can see this: 0.3 is 64 bit, 0.3f is 32 bit and 0.3l or 0.3L is 64 bit so no 80bit ... just 52+1 bits of mantissa for direct constants

    – Spektre
    1 hour ago







  • 1





    Checking with godbolt.org, GCC, Clang and ICC all perform 80-bit math and 80-bit memory stores with long double variables.

    – Davislor
    1 hour ago






  • 1





    @lvd Sure, going back to x87 now and foregoing vector operations would be a big performance hit as you say. I was talking about the historical context before SSE2 was invented.

    – rwallace
    13 mins ago













6












6








6








There is a paradox about floating point that I'm trying to understand.



Floating point is an eternal struggle with the problem that real numbers are both essential and incomputable. It's the best solution we have for most calculations involving physical quantities, but has the perennial problems of limited precision and range; many volumes have been written about how to deal with these problems, even down to hardware engineers getting headaches implementing support for subnormal numbers, only to have programmers promptly turning this off because it kills performance on workloads where many numbers iterate to zero. (The usual reference here is the introductory document What every computer scientist should know about floating-point arithmetic, but for a more in-depth discussion, it's worth reading the writings of William Kahan, one of the world's foremost experts on the topic, and a very clear writer.)



The usual standard for floating point where substantial precision is required is IEEE-745 double precision, 64 bits. It's the best most hardware provides; doing even slightly better typically requires switching to a software solution for a dramatic slowdown.



The x87 went one better and provided extended precision, 80 bits. A Google search finds many articles about this, and almost all of them lament the problem that when compilers spill temporaries from registers to memory, they round to 64 bits, so the exact results very quasi-randomly depending on the behavior of the optimizer, which admittedly is a problem indeed.



The obvious solution is for the in-memory format to be also 80 bits, so that you get both extended precision and consistency. But I have not encountered any mention, ever, of this being used. It's moot now that one uses SSE2 which doesn't provide extended precision, but I would expect it to have been used in the days when x87 was the available floating-point instruction set.



The paradox is this: on the one hand, there is much discussion of limited precision being a big problem. On the other hand, Intel provided a solution with an extra eleven bits of precision and five bits of exponent, that would cost very little performance to use (since the hardware implemented it whether you used it or not), and yet everyone seemed to behave as though this had no value, and to positively celebrate the move to SSE2 where extended precision is no longer available.



So my question is:



Did any compilers ever make full use of extended precision (i.e. 80 bits in memory as well as in registers)? If not, why not?










share|improve this question
















There is a paradox about floating point that I'm trying to understand.



Floating point is an eternal struggle with the problem that real numbers are both essential and incomputable. It's the best solution we have for most calculations involving physical quantities, but has the perennial problems of limited precision and range; many volumes have been written about how to deal with these problems, even down to hardware engineers getting headaches implementing support for subnormal numbers, only to have programmers promptly turning this off because it kills performance on workloads where many numbers iterate to zero. (The usual reference here is the introductory document What every computer scientist should know about floating-point arithmetic, but for a more in-depth discussion, it's worth reading the writings of William Kahan, one of the world's foremost experts on the topic, and a very clear writer.)



The usual standard for floating point where substantial precision is required is IEEE-745 double precision, 64 bits. It's the best most hardware provides; doing even slightly better typically requires switching to a software solution for a dramatic slowdown.



The x87 went one better and provided extended precision, 80 bits. A Google search finds many articles about this, and almost all of them lament the problem that when compilers spill temporaries from registers to memory, they round to 64 bits, so the exact results very quasi-randomly depending on the behavior of the optimizer, which admittedly is a problem indeed.



The obvious solution is for the in-memory format to be also 80 bits, so that you get both extended precision and consistency. But I have not encountered any mention, ever, of this being used. It's moot now that one uses SSE2 which doesn't provide extended precision, but I would expect it to have been used in the days when x87 was the available floating-point instruction set.



The paradox is this: on the one hand, there is much discussion of limited precision being a big problem. On the other hand, Intel provided a solution with an extra eleven bits of precision and five bits of exponent, that would cost very little performance to use (since the hardware implemented it whether you used it or not), and yet everyone seemed to behave as though this had no value, and to positively celebrate the move to SSE2 where extended precision is no longer available.



So my question is:



Did any compilers ever make full use of extended precision (i.e. 80 bits in memory as well as in registers)? If not, why not?







history compilers floating-point






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 hours ago







rwallace

















asked 3 hours ago









rwallacerwallace

11.2k456164




11.2k456164







  • 1





    Heh exactly what I was thinking the other day while trying to debug my 128 bit floating point class and was comparing hex output with something working like 32 bit float, 64 bit double and 80 bit long double In my compiler (Borland/Embarcadero) the last is supported for computation (but its unstable for heavy use as it can cause crashes probably due to fact the compiler I use is old 2006 on newer CPU and HW FPU could changed since) but the compiler itself truncate constants to 32/64 bit so it is not the same if you write a=1.0/3.0; or a=1.0; b=3.0; a=a/b; the latter is more precise.

    – Spektre
    2 hours ago






  • 1





    @Spektre It’s been many years since I used Borland Turbo C, but that’s correct behavior. The literal constants 1.0 and 3.0 have type double, so 1.0/3.0 is computed with only double precision, then padded to the length of a long double when it is implicitly converted. You could get full precision by writing a = 1.0L/3.0L;.

    – Davislor
    1 hour ago







  • 1





    @Davislor Its not the ancient Borland Turbo C++ but BDS2006 win32 compiler with VCL I can see this: 0.3 is 64 bit, 0.3f is 32 bit and 0.3l or 0.3L is 64 bit so no 80bit ... just 52+1 bits of mantissa for direct constants

    – Spektre
    1 hour ago







  • 1





    Checking with godbolt.org, GCC, Clang and ICC all perform 80-bit math and 80-bit memory stores with long double variables.

    – Davislor
    1 hour ago






  • 1





    @lvd Sure, going back to x87 now and foregoing vector operations would be a big performance hit as you say. I was talking about the historical context before SSE2 was invented.

    – rwallace
    13 mins ago












  • 1





    Heh exactly what I was thinking the other day while trying to debug my 128 bit floating point class and was comparing hex output with something working like 32 bit float, 64 bit double and 80 bit long double In my compiler (Borland/Embarcadero) the last is supported for computation (but its unstable for heavy use as it can cause crashes probably due to fact the compiler I use is old 2006 on newer CPU and HW FPU could changed since) but the compiler itself truncate constants to 32/64 bit so it is not the same if you write a=1.0/3.0; or a=1.0; b=3.0; a=a/b; the latter is more precise.

    – Spektre
    2 hours ago






  • 1





    @Spektre It’s been many years since I used Borland Turbo C, but that’s correct behavior. The literal constants 1.0 and 3.0 have type double, so 1.0/3.0 is computed with only double precision, then padded to the length of a long double when it is implicitly converted. You could get full precision by writing a = 1.0L/3.0L;.

    – Davislor
    1 hour ago







  • 1





    @Davislor Its not the ancient Borland Turbo C++ but BDS2006 win32 compiler with VCL I can see this: 0.3 is 64 bit, 0.3f is 32 bit and 0.3l or 0.3L is 64 bit so no 80bit ... just 52+1 bits of mantissa for direct constants

    – Spektre
    1 hour ago







  • 1





    Checking with godbolt.org, GCC, Clang and ICC all perform 80-bit math and 80-bit memory stores with long double variables.

    – Davislor
    1 hour ago






  • 1





    @lvd Sure, going back to x87 now and foregoing vector operations would be a big performance hit as you say. I was talking about the historical context before SSE2 was invented.

    – rwallace
    13 mins ago







1




1





Heh exactly what I was thinking the other day while trying to debug my 128 bit floating point class and was comparing hex output with something working like 32 bit float, 64 bit double and 80 bit long double In my compiler (Borland/Embarcadero) the last is supported for computation (but its unstable for heavy use as it can cause crashes probably due to fact the compiler I use is old 2006 on newer CPU and HW FPU could changed since) but the compiler itself truncate constants to 32/64 bit so it is not the same if you write a=1.0/3.0; or a=1.0; b=3.0; a=a/b; the latter is more precise.

– Spektre
2 hours ago





Heh exactly what I was thinking the other day while trying to debug my 128 bit floating point class and was comparing hex output with something working like 32 bit float, 64 bit double and 80 bit long double In my compiler (Borland/Embarcadero) the last is supported for computation (but its unstable for heavy use as it can cause crashes probably due to fact the compiler I use is old 2006 on newer CPU and HW FPU could changed since) but the compiler itself truncate constants to 32/64 bit so it is not the same if you write a=1.0/3.0; or a=1.0; b=3.0; a=a/b; the latter is more precise.

– Spektre
2 hours ago




1




1





@Spektre It’s been many years since I used Borland Turbo C, but that’s correct behavior. The literal constants 1.0 and 3.0 have type double, so 1.0/3.0 is computed with only double precision, then padded to the length of a long double when it is implicitly converted. You could get full precision by writing a = 1.0L/3.0L;.

– Davislor
1 hour ago






@Spektre It’s been many years since I used Borland Turbo C, but that’s correct behavior. The literal constants 1.0 and 3.0 have type double, so 1.0/3.0 is computed with only double precision, then padded to the length of a long double when it is implicitly converted. You could get full precision by writing a = 1.0L/3.0L;.

– Davislor
1 hour ago





1




1





@Davislor Its not the ancient Borland Turbo C++ but BDS2006 win32 compiler with VCL I can see this: 0.3 is 64 bit, 0.3f is 32 bit and 0.3l or 0.3L is 64 bit so no 80bit ... just 52+1 bits of mantissa for direct constants

– Spektre
1 hour ago






@Davislor Its not the ancient Borland Turbo C++ but BDS2006 win32 compiler with VCL I can see this: 0.3 is 64 bit, 0.3f is 32 bit and 0.3l or 0.3L is 64 bit so no 80bit ... just 52+1 bits of mantissa for direct constants

– Spektre
1 hour ago





1




1





Checking with godbolt.org, GCC, Clang and ICC all perform 80-bit math and 80-bit memory stores with long double variables.

– Davislor
1 hour ago





Checking with godbolt.org, GCC, Clang and ICC all perform 80-bit math and 80-bit memory stores with long double variables.

– Davislor
1 hour ago




1




1





@lvd Sure, going back to x87 now and foregoing vector operations would be a big performance hit as you say. I was talking about the historical context before SSE2 was invented.

– rwallace
13 mins ago





@lvd Sure, going back to x87 now and foregoing vector operations would be a big performance hit as you say. I was talking about the historical context before SSE2 was invented.

– rwallace
13 mins ago










2 Answers
2






active

oldest

votes


















3














Yes. For example, the C math library has had full support for long double, which on x87 was 80 bits wide, since C99. Previous versions of the standard library supported only the double type. Conforming C and C++ compilers also perform long double math if you give the operations a long double argument. (Recall that, in C, 1.0/3.0 divides a double by another double, producing a double-precision result, and to get long double precision, you would write 1.0L/3.0L.)



GCC, in particular, even has options such as -ffloat-store to turn off computing intermediate results to a higher precision than a double is supposed to have. However, some versions of gcc (for all languages, not just C) did sometimes spill an 80-bit quantity to 64 bits.



Testing with godbolt.org, GCC, Clang and ICC in x87 mode all perform 80-bit computations and memory stores with long double variables—except that they will optimize constants such as 0.5L to double when that will save memory at no loss of precision. MSVC 2017, however, only supports SSE.



There was never a standard way to specify 80-bit precision in Fortran, despite its main purpose being scientific computation, but some compilers provided extensions such as kind=3. There were other languages that supported 80-bit precision to some degree as well.



Another possible example is Haskell, which provided both exact Rational types and arbitrary-precision floating-point through Data.Number.CReal. So far as I know, no implementation used x87 80-bit hardware, but it might still be an answer to your question.






share|improve this answer




















  • 1





    The 2nd sentence of your -ffloat-store paragraph is a little weird. There are no versions of gcc that can always avoid spilling intermediate 80-bit temporaries, because there are only 8 x87 stack registers. And passing args to non-inline functions is done in memory according to the ABI + calling convention, which specifies binary64 double. I don't think there are any versions or options for gcc that will make it spill/reload double locals with 80-bit, so you only ever get 80-bit temporaries in cases where the vars can stay in regs (unless you declare them long double of course.)

    – Peter Cordes
    28 mins ago







  • 1





    (And the x87 regs are all call-clobbered, so any non-inline function call requires spilling everything else, as well as the double you're passing to sin() or whatever.) All the 32-bit calling conventions I'm aware of worked this way, passing FP args on the stack but returning float/double in ST0 as 80-bit. 32-bit MSVC will use x87 with its default calling convention: godbolt.org/z/YGhqFP shows that even in 32-bit though, long double was only 64-bit QWORD like it still is for Windows x64.

    – Peter Cordes
    26 mins ago







  • 1





    @PeterCordes Unless I misunderstand the output from godbolt, what you said applies only if you pass double arguments. When I tested with long double and sinl(), the compiler spilled them as TBYTE, that is, 80-bit.

    – Davislor
    20 mins ago






  • 1





    Apparently MSVC's CRT start files used to reduce x87 precision from 64-bit significand down to 53-bit (64-bit double), to maybe speed up fdiv and fsqrt. And/or to avoid extra intermediate precision without the cost of store/reload to round them. Bruce Dawson's randomascii.wordpress.com/2012/03/21/… article explains more. (And apparently D3D9 library init set x87 precision to 24-bit significand single-precision float! making everything less precise for a tiny speed gain on div/sqrt.) Modern MSVC doesn't do that anymore.

    – Peter Cordes
    19 mins ago






  • 1





    That's correct, you can call functions that take long double arguments, but my point was that gcc can't do that for existing code that uses double. (For standard library functions it could in theory have an option to replace sin with sinl, but some custom function with a double arg might not have a long double version). And if you call sinl(a), double b,c,d,e; locals will all be rounded from 80-bit to 64-bit by the store-reload to save them across that function call. That's probably the more important point.

    – Peter Cordes
    14 mins ago


















2















Did any compilers ever make full use of extended precision (i.e. 80
bits in memory as well as in registers)? If not, why not?




Since any calculations inside the x87 fpu have 80bit precision by default, any compiler that's able to generate x87 fpu code, is already using extended precision.
I also remember using long double even in 16-bit compilers for real mode.



The very similar situation was in 68k world, with FPUs like 68881 and 68882 supporting 80bit precision by default and any FPU code without special precautions would keep all register values in that precision. There was also long double datatype.




On the other hand, Intel provided a solution with an extra eleven bits
of precision and five bits of exponent, that would cost very little
performance to use (since the hardware implemented it whether you used
it or not), and yet everyone seemed to behave as though this had no
value




The usage of long double would prevent contemporary compilers from ever making calculations using SSE/whatever registers and instructions. And SSE is actually a very fast engine, able to fetch data in large chunks and make several computations in parallel, every clock. The x87 fpu now is just a legacy, not being very fast. So the deliberate usage of 80bit precision now would be certainly a huge performance hit.






share|improve this answer























  • Right, I was talking about the historical context in which x87 was the only FPU on x86, so no performance hit from using it. Good point about 68881 being a very similar architecture.

    – rwallace
    9 mins ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "648"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9751%2fdid-any-compiler-fully-use-80-bit-floating-point%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Yes. For example, the C math library has had full support for long double, which on x87 was 80 bits wide, since C99. Previous versions of the standard library supported only the double type. Conforming C and C++ compilers also perform long double math if you give the operations a long double argument. (Recall that, in C, 1.0/3.0 divides a double by another double, producing a double-precision result, and to get long double precision, you would write 1.0L/3.0L.)



GCC, in particular, even has options such as -ffloat-store to turn off computing intermediate results to a higher precision than a double is supposed to have. However, some versions of gcc (for all languages, not just C) did sometimes spill an 80-bit quantity to 64 bits.



Testing with godbolt.org, GCC, Clang and ICC in x87 mode all perform 80-bit computations and memory stores with long double variables—except that they will optimize constants such as 0.5L to double when that will save memory at no loss of precision. MSVC 2017, however, only supports SSE.



There was never a standard way to specify 80-bit precision in Fortran, despite its main purpose being scientific computation, but some compilers provided extensions such as kind=3. There were other languages that supported 80-bit precision to some degree as well.



Another possible example is Haskell, which provided both exact Rational types and arbitrary-precision floating-point through Data.Number.CReal. So far as I know, no implementation used x87 80-bit hardware, but it might still be an answer to your question.






share|improve this answer




















  • 1





    The 2nd sentence of your -ffloat-store paragraph is a little weird. There are no versions of gcc that can always avoid spilling intermediate 80-bit temporaries, because there are only 8 x87 stack registers. And passing args to non-inline functions is done in memory according to the ABI + calling convention, which specifies binary64 double. I don't think there are any versions or options for gcc that will make it spill/reload double locals with 80-bit, so you only ever get 80-bit temporaries in cases where the vars can stay in regs (unless you declare them long double of course.)

    – Peter Cordes
    28 mins ago







  • 1





    (And the x87 regs are all call-clobbered, so any non-inline function call requires spilling everything else, as well as the double you're passing to sin() or whatever.) All the 32-bit calling conventions I'm aware of worked this way, passing FP args on the stack but returning float/double in ST0 as 80-bit. 32-bit MSVC will use x87 with its default calling convention: godbolt.org/z/YGhqFP shows that even in 32-bit though, long double was only 64-bit QWORD like it still is for Windows x64.

    – Peter Cordes
    26 mins ago







  • 1





    @PeterCordes Unless I misunderstand the output from godbolt, what you said applies only if you pass double arguments. When I tested with long double and sinl(), the compiler spilled them as TBYTE, that is, 80-bit.

    – Davislor
    20 mins ago






  • 1





    Apparently MSVC's CRT start files used to reduce x87 precision from 64-bit significand down to 53-bit (64-bit double), to maybe speed up fdiv and fsqrt. And/or to avoid extra intermediate precision without the cost of store/reload to round them. Bruce Dawson's randomascii.wordpress.com/2012/03/21/… article explains more. (And apparently D3D9 library init set x87 precision to 24-bit significand single-precision float! making everything less precise for a tiny speed gain on div/sqrt.) Modern MSVC doesn't do that anymore.

    – Peter Cordes
    19 mins ago






  • 1





    That's correct, you can call functions that take long double arguments, but my point was that gcc can't do that for existing code that uses double. (For standard library functions it could in theory have an option to replace sin with sinl, but some custom function with a double arg might not have a long double version). And if you call sinl(a), double b,c,d,e; locals will all be rounded from 80-bit to 64-bit by the store-reload to save them across that function call. That's probably the more important point.

    – Peter Cordes
    14 mins ago















3














Yes. For example, the C math library has had full support for long double, which on x87 was 80 bits wide, since C99. Previous versions of the standard library supported only the double type. Conforming C and C++ compilers also perform long double math if you give the operations a long double argument. (Recall that, in C, 1.0/3.0 divides a double by another double, producing a double-precision result, and to get long double precision, you would write 1.0L/3.0L.)



GCC, in particular, even has options such as -ffloat-store to turn off computing intermediate results to a higher precision than a double is supposed to have. However, some versions of gcc (for all languages, not just C) did sometimes spill an 80-bit quantity to 64 bits.



Testing with godbolt.org, GCC, Clang and ICC in x87 mode all perform 80-bit computations and memory stores with long double variables—except that they will optimize constants such as 0.5L to double when that will save memory at no loss of precision. MSVC 2017, however, only supports SSE.



There was never a standard way to specify 80-bit precision in Fortran, despite its main purpose being scientific computation, but some compilers provided extensions such as kind=3. There were other languages that supported 80-bit precision to some degree as well.



Another possible example is Haskell, which provided both exact Rational types and arbitrary-precision floating-point through Data.Number.CReal. So far as I know, no implementation used x87 80-bit hardware, but it might still be an answer to your question.






share|improve this answer




















  • 1





    The 2nd sentence of your -ffloat-store paragraph is a little weird. There are no versions of gcc that can always avoid spilling intermediate 80-bit temporaries, because there are only 8 x87 stack registers. And passing args to non-inline functions is done in memory according to the ABI + calling convention, which specifies binary64 double. I don't think there are any versions or options for gcc that will make it spill/reload double locals with 80-bit, so you only ever get 80-bit temporaries in cases where the vars can stay in regs (unless you declare them long double of course.)

    – Peter Cordes
    28 mins ago







  • 1





    (And the x87 regs are all call-clobbered, so any non-inline function call requires spilling everything else, as well as the double you're passing to sin() or whatever.) All the 32-bit calling conventions I'm aware of worked this way, passing FP args on the stack but returning float/double in ST0 as 80-bit. 32-bit MSVC will use x87 with its default calling convention: godbolt.org/z/YGhqFP shows that even in 32-bit though, long double was only 64-bit QWORD like it still is for Windows x64.

    – Peter Cordes
    26 mins ago







  • 1





    @PeterCordes Unless I misunderstand the output from godbolt, what you said applies only if you pass double arguments. When I tested with long double and sinl(), the compiler spilled them as TBYTE, that is, 80-bit.

    – Davislor
    20 mins ago






  • 1





    Apparently MSVC's CRT start files used to reduce x87 precision from 64-bit significand down to 53-bit (64-bit double), to maybe speed up fdiv and fsqrt. And/or to avoid extra intermediate precision without the cost of store/reload to round them. Bruce Dawson's randomascii.wordpress.com/2012/03/21/… article explains more. (And apparently D3D9 library init set x87 precision to 24-bit significand single-precision float! making everything less precise for a tiny speed gain on div/sqrt.) Modern MSVC doesn't do that anymore.

    – Peter Cordes
    19 mins ago






  • 1





    That's correct, you can call functions that take long double arguments, but my point was that gcc can't do that for existing code that uses double. (For standard library functions it could in theory have an option to replace sin with sinl, but some custom function with a double arg might not have a long double version). And if you call sinl(a), double b,c,d,e; locals will all be rounded from 80-bit to 64-bit by the store-reload to save them across that function call. That's probably the more important point.

    – Peter Cordes
    14 mins ago













3












3








3







Yes. For example, the C math library has had full support for long double, which on x87 was 80 bits wide, since C99. Previous versions of the standard library supported only the double type. Conforming C and C++ compilers also perform long double math if you give the operations a long double argument. (Recall that, in C, 1.0/3.0 divides a double by another double, producing a double-precision result, and to get long double precision, you would write 1.0L/3.0L.)



GCC, in particular, even has options such as -ffloat-store to turn off computing intermediate results to a higher precision than a double is supposed to have. However, some versions of gcc (for all languages, not just C) did sometimes spill an 80-bit quantity to 64 bits.



Testing with godbolt.org, GCC, Clang and ICC in x87 mode all perform 80-bit computations and memory stores with long double variables—except that they will optimize constants such as 0.5L to double when that will save memory at no loss of precision. MSVC 2017, however, only supports SSE.



There was never a standard way to specify 80-bit precision in Fortran, despite its main purpose being scientific computation, but some compilers provided extensions such as kind=3. There were other languages that supported 80-bit precision to some degree as well.



Another possible example is Haskell, which provided both exact Rational types and arbitrary-precision floating-point through Data.Number.CReal. So far as I know, no implementation used x87 80-bit hardware, but it might still be an answer to your question.






share|improve this answer















Yes. For example, the C math library has had full support for long double, which on x87 was 80 bits wide, since C99. Previous versions of the standard library supported only the double type. Conforming C and C++ compilers also perform long double math if you give the operations a long double argument. (Recall that, in C, 1.0/3.0 divides a double by another double, producing a double-precision result, and to get long double precision, you would write 1.0L/3.0L.)



GCC, in particular, even has options such as -ffloat-store to turn off computing intermediate results to a higher precision than a double is supposed to have. However, some versions of gcc (for all languages, not just C) did sometimes spill an 80-bit quantity to 64 bits.



Testing with godbolt.org, GCC, Clang and ICC in x87 mode all perform 80-bit computations and memory stores with long double variables—except that they will optimize constants such as 0.5L to double when that will save memory at no loss of precision. MSVC 2017, however, only supports SSE.



There was never a standard way to specify 80-bit precision in Fortran, despite its main purpose being scientific computation, but some compilers provided extensions such as kind=3. There were other languages that supported 80-bit precision to some degree as well.



Another possible example is Haskell, which provided both exact Rational types and arbitrary-precision floating-point through Data.Number.CReal. So far as I know, no implementation used x87 80-bit hardware, but it might still be an answer to your question.







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 1 hour ago









DavislorDavislor

1,230210




1,230210







  • 1





    The 2nd sentence of your -ffloat-store paragraph is a little weird. There are no versions of gcc that can always avoid spilling intermediate 80-bit temporaries, because there are only 8 x87 stack registers. And passing args to non-inline functions is done in memory according to the ABI + calling convention, which specifies binary64 double. I don't think there are any versions or options for gcc that will make it spill/reload double locals with 80-bit, so you only ever get 80-bit temporaries in cases where the vars can stay in regs (unless you declare them long double of course.)

    – Peter Cordes
    28 mins ago







  • 1





    (And the x87 regs are all call-clobbered, so any non-inline function call requires spilling everything else, as well as the double you're passing to sin() or whatever.) All the 32-bit calling conventions I'm aware of worked this way, passing FP args on the stack but returning float/double in ST0 as 80-bit. 32-bit MSVC will use x87 with its default calling convention: godbolt.org/z/YGhqFP shows that even in 32-bit though, long double was only 64-bit QWORD like it still is for Windows x64.

    – Peter Cordes
    26 mins ago







  • 1





    @PeterCordes Unless I misunderstand the output from godbolt, what you said applies only if you pass double arguments. When I tested with long double and sinl(), the compiler spilled them as TBYTE, that is, 80-bit.

    – Davislor
    20 mins ago






  • 1





    Apparently MSVC's CRT start files used to reduce x87 precision from 64-bit significand down to 53-bit (64-bit double), to maybe speed up fdiv and fsqrt. And/or to avoid extra intermediate precision without the cost of store/reload to round them. Bruce Dawson's randomascii.wordpress.com/2012/03/21/… article explains more. (And apparently D3D9 library init set x87 precision to 24-bit significand single-precision float! making everything less precise for a tiny speed gain on div/sqrt.) Modern MSVC doesn't do that anymore.

    – Peter Cordes
    19 mins ago






  • 1





    That's correct, you can call functions that take long double arguments, but my point was that gcc can't do that for existing code that uses double. (For standard library functions it could in theory have an option to replace sin with sinl, but some custom function with a double arg might not have a long double version). And if you call sinl(a), double b,c,d,e; locals will all be rounded from 80-bit to 64-bit by the store-reload to save them across that function call. That's probably the more important point.

    – Peter Cordes
    14 mins ago












  • 1





    The 2nd sentence of your -ffloat-store paragraph is a little weird. There are no versions of gcc that can always avoid spilling intermediate 80-bit temporaries, because there are only 8 x87 stack registers. And passing args to non-inline functions is done in memory according to the ABI + calling convention, which specifies binary64 double. I don't think there are any versions or options for gcc that will make it spill/reload double locals with 80-bit, so you only ever get 80-bit temporaries in cases where the vars can stay in regs (unless you declare them long double of course.)

    – Peter Cordes
    28 mins ago







  • 1





    (And the x87 regs are all call-clobbered, so any non-inline function call requires spilling everything else, as well as the double you're passing to sin() or whatever.) All the 32-bit calling conventions I'm aware of worked this way, passing FP args on the stack but returning float/double in ST0 as 80-bit. 32-bit MSVC will use x87 with its default calling convention: godbolt.org/z/YGhqFP shows that even in 32-bit though, long double was only 64-bit QWORD like it still is for Windows x64.

    – Peter Cordes
    26 mins ago







  • 1





    @PeterCordes Unless I misunderstand the output from godbolt, what you said applies only if you pass double arguments. When I tested with long double and sinl(), the compiler spilled them as TBYTE, that is, 80-bit.

    – Davislor
    20 mins ago






  • 1





    Apparently MSVC's CRT start files used to reduce x87 precision from 64-bit significand down to 53-bit (64-bit double), to maybe speed up fdiv and fsqrt. And/or to avoid extra intermediate precision without the cost of store/reload to round them. Bruce Dawson's randomascii.wordpress.com/2012/03/21/… article explains more. (And apparently D3D9 library init set x87 precision to 24-bit significand single-precision float! making everything less precise for a tiny speed gain on div/sqrt.) Modern MSVC doesn't do that anymore.

    – Peter Cordes
    19 mins ago






  • 1





    That's correct, you can call functions that take long double arguments, but my point was that gcc can't do that for existing code that uses double. (For standard library functions it could in theory have an option to replace sin with sinl, but some custom function with a double arg might not have a long double version). And if you call sinl(a), double b,c,d,e; locals will all be rounded from 80-bit to 64-bit by the store-reload to save them across that function call. That's probably the more important point.

    – Peter Cordes
    14 mins ago







1




1





The 2nd sentence of your -ffloat-store paragraph is a little weird. There are no versions of gcc that can always avoid spilling intermediate 80-bit temporaries, because there are only 8 x87 stack registers. And passing args to non-inline functions is done in memory according to the ABI + calling convention, which specifies binary64 double. I don't think there are any versions or options for gcc that will make it spill/reload double locals with 80-bit, so you only ever get 80-bit temporaries in cases where the vars can stay in regs (unless you declare them long double of course.)

– Peter Cordes
28 mins ago






The 2nd sentence of your -ffloat-store paragraph is a little weird. There are no versions of gcc that can always avoid spilling intermediate 80-bit temporaries, because there are only 8 x87 stack registers. And passing args to non-inline functions is done in memory according to the ABI + calling convention, which specifies binary64 double. I don't think there are any versions or options for gcc that will make it spill/reload double locals with 80-bit, so you only ever get 80-bit temporaries in cases where the vars can stay in regs (unless you declare them long double of course.)

– Peter Cordes
28 mins ago





1




1





(And the x87 regs are all call-clobbered, so any non-inline function call requires spilling everything else, as well as the double you're passing to sin() or whatever.) All the 32-bit calling conventions I'm aware of worked this way, passing FP args on the stack but returning float/double in ST0 as 80-bit. 32-bit MSVC will use x87 with its default calling convention: godbolt.org/z/YGhqFP shows that even in 32-bit though, long double was only 64-bit QWORD like it still is for Windows x64.

– Peter Cordes
26 mins ago






(And the x87 regs are all call-clobbered, so any non-inline function call requires spilling everything else, as well as the double you're passing to sin() or whatever.) All the 32-bit calling conventions I'm aware of worked this way, passing FP args on the stack but returning float/double in ST0 as 80-bit. 32-bit MSVC will use x87 with its default calling convention: godbolt.org/z/YGhqFP shows that even in 32-bit though, long double was only 64-bit QWORD like it still is for Windows x64.

– Peter Cordes
26 mins ago





1




1





@PeterCordes Unless I misunderstand the output from godbolt, what you said applies only if you pass double arguments. When I tested with long double and sinl(), the compiler spilled them as TBYTE, that is, 80-bit.

– Davislor
20 mins ago





@PeterCordes Unless I misunderstand the output from godbolt, what you said applies only if you pass double arguments. When I tested with long double and sinl(), the compiler spilled them as TBYTE, that is, 80-bit.

– Davislor
20 mins ago




1




1





Apparently MSVC's CRT start files used to reduce x87 precision from 64-bit significand down to 53-bit (64-bit double), to maybe speed up fdiv and fsqrt. And/or to avoid extra intermediate precision without the cost of store/reload to round them. Bruce Dawson's randomascii.wordpress.com/2012/03/21/… article explains more. (And apparently D3D9 library init set x87 precision to 24-bit significand single-precision float! making everything less precise for a tiny speed gain on div/sqrt.) Modern MSVC doesn't do that anymore.

– Peter Cordes
19 mins ago





Apparently MSVC's CRT start files used to reduce x87 precision from 64-bit significand down to 53-bit (64-bit double), to maybe speed up fdiv and fsqrt. And/or to avoid extra intermediate precision without the cost of store/reload to round them. Bruce Dawson's randomascii.wordpress.com/2012/03/21/… article explains more. (And apparently D3D9 library init set x87 precision to 24-bit significand single-precision float! making everything less precise for a tiny speed gain on div/sqrt.) Modern MSVC doesn't do that anymore.

– Peter Cordes
19 mins ago




1




1





That's correct, you can call functions that take long double arguments, but my point was that gcc can't do that for existing code that uses double. (For standard library functions it could in theory have an option to replace sin with sinl, but some custom function with a double arg might not have a long double version). And if you call sinl(a), double b,c,d,e; locals will all be rounded from 80-bit to 64-bit by the store-reload to save them across that function call. That's probably the more important point.

– Peter Cordes
14 mins ago





That's correct, you can call functions that take long double arguments, but my point was that gcc can't do that for existing code that uses double. (For standard library functions it could in theory have an option to replace sin with sinl, but some custom function with a double arg might not have a long double version). And if you call sinl(a), double b,c,d,e; locals will all be rounded from 80-bit to 64-bit by the store-reload to save them across that function call. That's probably the more important point.

– Peter Cordes
14 mins ago











2















Did any compilers ever make full use of extended precision (i.e. 80
bits in memory as well as in registers)? If not, why not?




Since any calculations inside the x87 fpu have 80bit precision by default, any compiler that's able to generate x87 fpu code, is already using extended precision.
I also remember using long double even in 16-bit compilers for real mode.



The very similar situation was in 68k world, with FPUs like 68881 and 68882 supporting 80bit precision by default and any FPU code without special precautions would keep all register values in that precision. There was also long double datatype.




On the other hand, Intel provided a solution with an extra eleven bits
of precision and five bits of exponent, that would cost very little
performance to use (since the hardware implemented it whether you used
it or not), and yet everyone seemed to behave as though this had no
value




The usage of long double would prevent contemporary compilers from ever making calculations using SSE/whatever registers and instructions. And SSE is actually a very fast engine, able to fetch data in large chunks and make several computations in parallel, every clock. The x87 fpu now is just a legacy, not being very fast. So the deliberate usage of 80bit precision now would be certainly a huge performance hit.






share|improve this answer























  • Right, I was talking about the historical context in which x87 was the only FPU on x86, so no performance hit from using it. Good point about 68881 being a very similar architecture.

    – rwallace
    9 mins ago















2















Did any compilers ever make full use of extended precision (i.e. 80
bits in memory as well as in registers)? If not, why not?




Since any calculations inside the x87 fpu have 80bit precision by default, any compiler that's able to generate x87 fpu code, is already using extended precision.
I also remember using long double even in 16-bit compilers for real mode.



The very similar situation was in 68k world, with FPUs like 68881 and 68882 supporting 80bit precision by default and any FPU code without special precautions would keep all register values in that precision. There was also long double datatype.




On the other hand, Intel provided a solution with an extra eleven bits
of precision and five bits of exponent, that would cost very little
performance to use (since the hardware implemented it whether you used
it or not), and yet everyone seemed to behave as though this had no
value




The usage of long double would prevent contemporary compilers from ever making calculations using SSE/whatever registers and instructions. And SSE is actually a very fast engine, able to fetch data in large chunks and make several computations in parallel, every clock. The x87 fpu now is just a legacy, not being very fast. So the deliberate usage of 80bit precision now would be certainly a huge performance hit.






share|improve this answer























  • Right, I was talking about the historical context in which x87 was the only FPU on x86, so no performance hit from using it. Good point about 68881 being a very similar architecture.

    – rwallace
    9 mins ago













2












2








2








Did any compilers ever make full use of extended precision (i.e. 80
bits in memory as well as in registers)? If not, why not?




Since any calculations inside the x87 fpu have 80bit precision by default, any compiler that's able to generate x87 fpu code, is already using extended precision.
I also remember using long double even in 16-bit compilers for real mode.



The very similar situation was in 68k world, with FPUs like 68881 and 68882 supporting 80bit precision by default and any FPU code without special precautions would keep all register values in that precision. There was also long double datatype.




On the other hand, Intel provided a solution with an extra eleven bits
of precision and five bits of exponent, that would cost very little
performance to use (since the hardware implemented it whether you used
it or not), and yet everyone seemed to behave as though this had no
value




The usage of long double would prevent contemporary compilers from ever making calculations using SSE/whatever registers and instructions. And SSE is actually a very fast engine, able to fetch data in large chunks and make several computations in parallel, every clock. The x87 fpu now is just a legacy, not being very fast. So the deliberate usage of 80bit precision now would be certainly a huge performance hit.






share|improve this answer














Did any compilers ever make full use of extended precision (i.e. 80
bits in memory as well as in registers)? If not, why not?




Since any calculations inside the x87 fpu have 80bit precision by default, any compiler that's able to generate x87 fpu code, is already using extended precision.
I also remember using long double even in 16-bit compilers for real mode.



The very similar situation was in 68k world, with FPUs like 68881 and 68882 supporting 80bit precision by default and any FPU code without special precautions would keep all register values in that precision. There was also long double datatype.




On the other hand, Intel provided a solution with an extra eleven bits
of precision and five bits of exponent, that would cost very little
performance to use (since the hardware implemented it whether you used
it or not), and yet everyone seemed to behave as though this had no
value




The usage of long double would prevent contemporary compilers from ever making calculations using SSE/whatever registers and instructions. And SSE is actually a very fast engine, able to fetch data in large chunks and make several computations in parallel, every clock. The x87 fpu now is just a legacy, not being very fast. So the deliberate usage of 80bit precision now would be certainly a huge performance hit.







share|improve this answer












share|improve this answer



share|improve this answer










answered 58 mins ago









lvdlvd

2,955721




2,955721












  • Right, I was talking about the historical context in which x87 was the only FPU on x86, so no performance hit from using it. Good point about 68881 being a very similar architecture.

    – rwallace
    9 mins ago

















  • Right, I was talking about the historical context in which x87 was the only FPU on x86, so no performance hit from using it. Good point about 68881 being a very similar architecture.

    – rwallace
    9 mins ago
















Right, I was talking about the historical context in which x87 was the only FPU on x86, so no performance hit from using it. Good point about 68881 being a very similar architecture.

– rwallace
9 mins ago





Right, I was talking about the historical context in which x87 was the only FPU on x86, so no performance hit from using it. Good point about 68881 being a very similar architecture.

– rwallace
9 mins ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Retrocomputing Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9751%2fdid-any-compiler-fully-use-80-bit-floating-point%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Is it wise to focus on putting odd beats on left when playing double bass drums?What does the tie across other different notes mean?How to improve right hand picking/strumming technique for electric and acoustic guitar?How fast is the BPM should you start to use double bass pedal?Alternative or more advanced methods for counting rhythmsLost direction in practicing drumsIs there any way at all to tell if these measures are 6/4 vs. 3/2?Why is alberti bass so tiring?How does 'meter' differ from 'rhythm' in music?Rhythm question about piano sheet notationWhy is Bach's Cello Suite 1 written in 16th notes

What does “fit” mean in this sentence? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How does 'jealousy' mean 'suspicion'?What does “not so say” mean?Does “somebody of my caliber” mean the speaker themselves?“accounting for high fasting blood glucose”- help about the meaningWhat does “cloaked by NDA” mean in this context?What does it mean by 'community ownership' in this context?What does “human corroborators” mean in this context?What does “everything but a fire” mean in this context?What does “run” mean here?What does “rabbited” mean/imply in this sentence?

History of India Contents Prehistoric era (until c. 3300 BCE) Bronze Age – "First urbanisation" (c. 3300 – c. 1800 BCE) Climate change, de-urbanisation, and Indo-Aryan migrations (c.1800 – 1500 BCE) Iron Age - Vedic period (c. 1500 – c. 600 BCE) "Second urbanisation" (c. 600 – c. 200 BCE) Classical to early medieval periods (c. 200 BCE – c. 1200 CE) Late medieval period (c. 1200 – 1526 CE) Early modern period (c. 1526–1858 CE) Modern period and independence (after c. 1850 CE) Historiography See also References Further reading External links Navigation menureviewedee[update]The crisisThe Evolution and History of Human Populations in South Asia: Inter-disciplinary Studies in Archaeology, Biological Anthropology, Linguistics and GeneticsThe Ancient Indus: Urbanism, Economy, and Society"Indus River Valley Civilizations"The Ancient Indus: Urbanism, Economy, and Society"India before the British: The Mughal Empire and its Rivals, 1526–1857"Why Europe Grew Rich and Asia Did Not: Global Economic Divergence, 1600–1850Development Centre Studies The World Economy Historical Statistics: Historical StatisticsDeveloping cultures: case studiesEthnic Groups of South Asia and the Pacific: An Encyclopedia: An Encyclopedia"Indian Economy During British Rule""Economic Impact of the British Rule in India | Indian History"The Bone Readers: Science and Politics in Human Origins Research"Out of Africa: new hypotheses and evidence for the dispersal of Homo sapiens along the Indian Ocean rim"10.3109/0301446100363924920334598"Genetic and archaeological perspectives on the initial modern human colonization of southern Asia"2013PNAS..11010699M10.1073/pnas.1306043110369678523754394"Edakkal Caves|Places Around in Wayanad"Protecting megaliths to keep history alive The Hindu daily"Archaeologists rock solid behind Edakkal Cave"The Global Prehistory of Human Migration"Indus Valley 2,000 years older than thought"the original"Stepwells -Cosmology of Subterranean Architecture as seen in Adalaj"A History of Ancient and Early medieval India : from the Stone Age to the 12th century"Stone celts in Harappa"the original"Peoples and languages in pre-islamic Indus valley"the original"The Sindhi language"the originalThe Aryan chromosome"Fluvial landscapes of the Harappan Civilization"2012PNAS..109E1688G10.1073/pnas.1112743109338705422645375"Is River Ghaggar, Saraswati? Geochemical Constraints""An Ancient Civilization, Upended by Climate Change""Huge Ancient Civilization's Collapse Explained"2003GeoRL..30.1425S10.1029/2002GL0168222006QSRv...25.1283M10.1016/j.quascirev.2005.10.0122011QuInt.229..140M10.1016/j.quaint.2009.11.012Climate Change and the Course of Global History: A Rough JourneyA History of Ancient and Early Medieval India: From the Stone Age to the 12th CenturyA History of Ancient and Mediaeval India: From the Stone Age to the 12th CenturyAntennae SwordA History of IndiaA History of IndiaAn Introduction to Hinduism"India: The Late 2nd Millennium and the Reemergence of Urbanism"The Coinage of Ancient IndiaA Sanskrit reader: with vocabulary and notesPedigree: the origins of words from nature"Early Sanskritization. Origins and Development of the Kuru State"10.11588/ejvs.1995.4.823The Sanskrit epics, Part 2The City in South AsiaThe UpanishadsAn Introduction to HinduismReligions of the World, Second Edition: A Comprehensive Encyclopedia of Beliefs and PracticesA History of Ancient and Early Medieval India: From the Stone Age to the 12th CenturyEarly India: From the Origins to AD 1300Republics in ancient Indiapp. 83ff"Magadha Empire""Lumbini Development Trust: Restoring the Lumbini Garden"the originalThe great armies of antiquityarchived"The Achaemenid Persian Empire (550–330 B.C.)""East–West Orientation of Historical Empires"1076-156X"Dinner on the Grand Trunk Road"10.2307/32502263250226"Silappathikaram Tamil Literature"the originalManimekalai – English transliteration of Tamil originalIndian Temple Architecture: Form and Transformation : the Karṇāṭa Drāviḍa Tradition, 7th to 13th CenturiesBuddhist ArchitectureA History of India"The World Economy (GDP) : Historical Statistics by Professor Angus Maddison"The World Economy – Volume 1: A Millennial Perspective and Volume 2: Historical Statistics10.2307/32502140004-36483250214A Comprehensive History of India: Volume 2Between the Empires: Society in India, 300 to 400Emergence of Viṣṇu and Śiva Images in India: Numismatic and Sculptural Evidence"Parthian Pair of Earrings"the originalThe Medical Times and Gazette, Volume 1Greatest emporium in the worldThe Cambridge History of Ancient China: From the Origins of Civilization to 221 BCBuddhist Records of the Western WorldArchaeology in Soviet Central AsiaThe Grandeur of Gandhara: The Ancient Buddhist Civilization of the Swat, Peshawar, Kabul and Indus ValleysIndian Sculpture: Circa 500 B.C.-A.D. 700"The History of Pakistan: The Kushans"Gupta Dynasty – MSN Encartathe original"India – Historical Setting – The Classical Age – Gupta and Harsha""Gupta Dynasty, Golden Age Of India"the original"The Age of the Guptas and After"the originalNumber Theory and Its History"Gupta dynasty (Indian dynasty)""Gupta dynasty: empire in 4th century"the original"The Story of India – Photo Gallery"The ASI say499315420"Pallava script"p. 145"CNG: eAuction 329. INDIA, Post-Gupta (Ganges Valley). Vardhanas of Thanesar and Kanauj. Harshavardhana. Circa AD 606–647. AR Drachm (13mm, 2.28 g, 1h)""Harsha""Sthanvishvara (historical region, India)""Harsha (Indian emperor)"Shyama Kumar Chattopadhyaya (2000) The Philosophy of Sankar's Advaita VedantaShankara's IntroductionShankara's Introduction19373677Shankara's IntroductionIs The Buddhist 'No-Self' Doctrine Compatible With Pursuing Nirvana?The Seven Spiritual Laws Of YogaIndia: The Ancient Past. A History of the Indian-Subcontinent from 7000 BC to AD 1200The Kashmir Series: Glimpses of Kashmiri Culture – Vivekananda Kendra, Kanyakumari (p. 57).Al-Hind: Early Medieval India and the Expansion of Islam, 7th–11th CenturiesHistory of GopāchalaLand of Two Rivers: A History of Bengal from the Mahabharata to MujibEuropean Trade and Colonial ConquestA History of IndiaA Comprehensive History Of Ancient India (3 Vol. Set)"The Last Years of Cholas: The decline and fall of a dynasty"the originalFascinating Hindutva: Saffron Politics and Dalit MobilisationGazetteer of the province of OudhAl- Hind: The slave kings and the Islamic conquest. 2"Shahi Family"The Cambridge history of Islam"Ameer Nasir-ood-deen Subooktugeen"Gazetteer of the Attock District, 1930, Part 1Land of seven rivers: History of India's GeographyTemple Desecration and Indo-Muslim StatesIslam in South Asia: A Short HistoryBeyond Orientalism: The Work of Wilhelm Halbfass and Its Impact on Indian and Cross-cultural StudiesThe Making of Terrorism in Pakistan: Historical and Social Roots of ExtremismOrnament in Indian ArchitectureA historical review of Hindu India: 300 B.C. to 1200 A.D."Indian States and Union Territories"Islam in South Asia: A Short HistoryA Brief History of the Indian PeoplesThe Modern ReviewDelhi Sultanate"Battuta's Travels: Delhi, capital of Muslim India"the original"Timur – conquest of India"the originalIndia HandbookBhaktiThe Four Denomination of Hinduism10.1007/s11407-008-9049-925691067"Vijayanagara Research Project::Elephant Stables"10.2307/26465262646526Historical Dictionary of the TamilsBihar General Knowledge DigestMapping Bihar: From Medieval to Modern TimesPopular Literature and Pre-modern Societies in South AsiaA manual of the Kistna district in the presidency of MadrasAncient Indian History and CivilizationFragmented Memories: Struggling to be Tai-Ahom in India"The Islamic World to 1600: Rise of the Great Islamic Empires (The Mughal Empire)"the originalDynasties: A Global History of Power, 1300–1800, p. 105"Whose fort is it anyway"10.1111/0020-8833.000532600793Development Centre Studies The World Economy Historical Statistics: Historical Statistics"India's Deindustrialization in the 18th and 19th Centuries"The Mughal Empire, p. 190"The Long Globalization and Textile Producers in India"The Mughal World: Life in India's Last Golden AgeAurangzeb: The Life and Legacy of India's Most Controversial KingIn the Shadow of the Taj: A Portrait of Agra"Iran in the Age of the Raj"p. 8610.2307/20539802053980Delhi, the Capital of IndiaAn Advanced History of Modern India"Journal of the Tanjore Maharaja Serfoji's Sarasvati Mahal Library"The Rediscovery of India: A New SubcontinentIslamic Renaissance In South Asia (1707–1867) : The Role Of Shah Waliallah & His SuccessorsAn Advanced History of Modern IndiaThe Great Maratha Mahadaji Scindia"Full text of "Selections from the papers of Lord Metcalfe; late governor-general of India, governor of Jamaica, and governor-general of Canada""The Discovery Of IndiaThe Sacred City of the Hindus: An Account of Benares in Ancient and Modern TimesResurrecting Banaras: Urban Space, Architecture and Religious BoundariesFaith & Philosophy of Sikhism"Missiles mainstay of Pak's N-arsenal"History Modern India By S.N. Sen"Sirajuddaula"ArchivedLongman History & Civics (Dual Government in Bengal)Madhya Pradesh National Means-Cum-Merit Scholarship Exam (Warren Hasting's system of Dual Government)A Military History of Britain: from 1775 to the PresentIndian Cultural Heritage Perspective For TourismHindu Rulers, Muslim Subjects: Islam, Rights, and the History of KashmirIndian HistoryAn Atlas and Survey of South Asian HistoryAn Historical Account of the British Trade Over the Caspian SeaIndian Merchants and Eurasian Trade, 1600–1750The Indian diaspora in Central Asia and its trade, 1550–1900From Constantinople to the home of Omar Khayyam: travels in Transcaucasia and northern Persia for historic and literary researchA journey from Bengal to England: through the northern part of India, Kashmire, Afghanistan, and Persia, and into Russia, by the Caspian-SeaA Second Journey through Persia, Armenia, and Asia Minor, to Constantinople, between the Years 1810 and 1816Reports from the consuls of the United States, 1887Portugal and its Empire, 1250–1800 (Collected Essays in Memory of Glenn J. Ames).: Portuguese Studies Review, Vol. 17, No. 1The Dutch Power in Kerala, 1729–1758http://mod.nic.inArchivedDossier Goa – A Recusa do Sacrifício InútilAn Imperial Crisis in British India: The Manipur Uprising of 1891The Truth of Babri Mosque"Kolkata (Calcutta) : History"the original"Robert Clive, Baron Clive, 'Clive of India', 1725–1774""The Transformation from a Pre-Colonial to a Colonial Order: The Case of India"10.2307/25955872595587A versatile geniusArchived10.1109/MWSYM.1997.602854"Rabindranath Tagore on Education"the original"Essay on 'Derozio and the Young Bengal Movement'"Poverty and Famines: An Essay on Entitlement and Deprivation"Plague"the originalPopulation Growth and Land Use"Reintegrating India with the World Economy""Census Of India 1931"A history of modern India, 1480–1950"'India's well-timed diversification of army helped democracy' | Business Standard News"Bal Gangadhar Tilak: Struggle for Swaraj"Participants from the Indian subcontinent in the First World War""Commonwealth War Graves Commission Annual Report 2007–2008 Online"the original1462689197110.1017/s0010417500016534178920Eurocentrism: a marxian critical realist critique"Ranjit Guha, "On Some Aspects of Historiography of Colonial India""10.2307/2168385216838510.7202/016593ar"Harvard scholar says the idea of India dates to a much earlier time than the British or the Mughals""In The Footsteps of Pilgrims""India's spiritual landscape: The heavens and the earth""India: A Sacred Geography by Diana L Eck – review"Modern India: The Origins of an Asian Democracy10.2307/21694222169422964322464"The Indian Subcontinent and 'Out of Africa 1'"254043308Encyclopedia of World ReligionsThe Evolution and History of Human Populations in South Asia: Inter-disciplinary Studies in Archaeology, Biological Anthropology, Linguistics and Genetics"The Early Paleolithic of the Indian Subcontinent: Hominin Colonization, Dispersals and Occupation History"Ancient Indian History and CivilizationAncient Indian Social History: Some Interpretationsthe originalIndia Before EuropeA Concise History of Modern India"The beginning of the historical period, c. 500–150 BCE"full textA History of Indiathe originalexcerpt and text searchexcerptexcerptAn Economic History of India: From Pre-Colonial Times to 1991excerpt and text searchexcerpt and text searchIndia as known to the ancient world10.1111/j.1468-0289.1985.tb00391.x2597191onlineThe History of India, as told by its own historians. The Muhammadan Periodonline editionHans William Brown research collection on 19th-century missionary work in India, 1882–1932, Ms. Coll. 1033, Kislak Center for Special Collections, Rare Books and Manuscripts, University of Pennsylvaniaee