Recent Posts

Pages: [1] 2 3 ... 10
1
The Soap Box / Re: Zen story...
« Last post by caballero on Today at 02:49:11 AM »
Quote
Well, nothing is for free. Free universities are paid by goverment, and we support goverment paying taxes.
Quote
Persons still believe that goverment will help people, no, we maintain goverment
I'm really glad to read here that from somebody.

Quote
Itally is matriarchal
I don't want matriarchal or patriarchal. I just need a society free and equal as much as possible.

Quote
In my country you'll need a study loan ( without having rich parents ) to go to university and have to pay for health care too.
In my learning days this was all for free.
I'm really impressed to read this. Here no one would consider paying for health or education... not for now.

If this changed from free to pay, I guess that it would be because it was spent more than it should. We have to balance the accounts if we want to survive in the future.

The question is in what we have spent so much money? I do not know anyone who has done a detailed study of truth on the subject, though I have my idea.

The truth is that here, nor have the accounts been cleaned up, nor is it thought of cutting spending, just the opposite. If Spain survives is thanks to the massive purchase of its bonds by the ECB, which is about to end.

A dark future, so let's think on football, please.
2
The Laboratory / Re: 1/x timings for FPU and SIMD code
« Last post by zedd151 on Today at 02:13:21 AM »
1.60 Ghz - per usual
Code: [Select]
AMD A6-9220e RADEON R4, 5 COMPUTE CORES 2C+3G   (SSE4)
 
2353    cycles for 1000 * rcpss
15288   cycles for 1000 * 1/x using fdiv
2070    cycles for 1000 * 1/x using divss
 
2352    cycles for 1000 * rcpss
15347   cycles for 1000 * 1/x using fdiv
2071    cycles for 1000 * 1/x using divss
 
2353    cycles for 1000 * rcpss
15283   cycles for 1000 * 1/x using fdiv
2069    cycles for 1000 * 1/x using divss
 
24      bytes for rcpss
23      bytes for 1/x using fdiv
39      bytes for 1/x using divss
 
ST0     123453440.0000000000
ST0     123456792.0000000000
ST0     123453440.0000000000
--- ok ---

Why dont we...

Why don't you ...     ...        ...       ...     ...       post your results?    :P
 
The more, the merrier.   :biggrin:
3
ASMC Development / Re: Object-oriented programming (OOP) in Asmc
« Last post by nidud on Today at 02:11:59 AM »
Added a more portable implementation for class::member

Instead of using '@' to separate class from member functions an underscore is now used. In addition to this regular types may also be used where *this is declared directly as oppose to a pointer.

Some examples using types.

    sbyte::add proto :sbyte
    oword::add proto :oword
 * sbyte_add proto :sbyte, :sbyte
 * oword_add proto :oword, :oword


The assembler will in this case convert oword to pointers but pass bytes as value.

foo proc

  local c1:sbyte, c2:sbyte
  local o1:oword, o2:oword

    sbyte::add( c1, c2 )
    oword::add( o1, o2 )
    ret

foo endp
 20a:   55                      push   rbp
 20b:   48 8b ec                mov    rbp,rsp
 20e:   48 83 ec 50             sub    rsp,0x50
 212:   8a 4d ff                mov    cl,BYTE PTR [rbp-0x1]
 215:   8a 55 fe                mov    dl,BYTE PTR [rbp-0x2]
 218:   e8 e3 ff ff ff          call   0x200
 21d:   48 8d 4d e8             lea    rcx,[rbp-0x18]
 221:   48 8d 55 d8             lea    rdx,[rbp-0x28]
 225:   e8 e0 ff ff ff          call   0x20a
 22a:   c9                      leave
 22b:   c3                      ret


Using struct's and floats.

xword struc
    l dq ?
    h dq ?
xword ends

xword::add proto :xword
real16::add proto :real16

foo proc

  local x1:xword, x2:xword
  local r1:real16, r2:real16

    xword::add( x1, x2 )
    real16::add( r1, r2 )
    ret

foo endp
 214:   55                      push   rbp
 215:   48 8b ec                mov    rbp,rsp
 218:   48 83 ec 60             sub    rsp,0x60
 21c:   48 8d 4d f0             lea    rcx,[rbp-0x10]
 220:   48 8d 55 e0             lea    rdx,[rbp-0x20]
 224:   e8 e1 ff ff ff          call   0x20a
 229:   0f 28 45 d0             movaps xmm0,XMMWORD PTR [rbp-0x30]
 22d:   0f 28 4d c0             movaps xmm1,XMMWORD PTR [rbp-0x40]
 231:   e8 ca ff ff ff          call   0x200
 236:   c9                      leave
 237:   c3                      ret
4
The Laboratory / Re: 1/x timings for FPU and SIMD code
« Last post by mineiro on Today at 02:07:24 AM »
Code: [Select]
Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (SSE4)

2584    cycles for 1000 * rcpss
16274   cycles for 1000 * 1/x using fdiv
1818    cycles for 1000 * 1/x using divss

2597    cycles for 1000 * rcpss
16282   cycles for 1000 * 1/x using fdiv
1818    cycles for 1000 * 1/x using divss

2587    cycles for 1000 * rcpss
16274   cycles for 1000 * 1/x using fdiv
1818    cycles for 1000 * 1/x using divss

24      bytes for rcpss
23      bytes for 1/x using fdiv
39      bytes for 1/x using divss

ST0     123453440.0000000000
ST0     123456792.0000000000
ST0     123453440.0000000000

--- ok ---
5
The Soap Box / Re: Zen story...
« Last post by mineiro on Today at 02:01:15 AM »
Well, nothing is for free. Free universities are paid by goverment, and we support goverment paying taxes. Persons still believe that goverment will help people, no, we maintain goverment. If I don't read, nobody will read to me.
On Brasil they use social-construtivism actually, done by a philosopher Paulo Freire. This means that you go to class to learn math and they don't teach math to you, they teach you how to be a man or woman that have only rights but not duties.
That Robin Hood is nice on paper but on pratice is another thing. Give from the rich to spend with poors. Persons don't know that Robin Hood was a rich person, he preserved they money, the thing is that he don't like to pay taxes to goverment.
The same to Darwin. Darwin get the idea from their father or grandfather, I forgot now. Then applyed on biology, classify bodys or classes fight. Thats a political project that was not pratical but fit into biology.

The best that I have seen along these years is: "Monkey see, monkey do". Not joking, that's the best way to learn. Look now South Korea and China educational system, use this method. Try, pratice, try, pratice, try, pratice. That's why they are the first of this world on education.
France, like Brasil have a lot of touches on last years, France changed 4 times they education system on last century.

I have in mind that we need help persons to reach good education, being rich or poor, but they need deserve that, meritocracy. Brasil waste 4 more times money than each of European countries on education, the result here is catastrophic. Is not about money.
6
Game Development / Re: SWGPTG - 02 - Drawing Basic Shapes
« Last post by HSE on Today at 01:21:06 AM »
Very nice  :t
8
The Laboratory / Re: 1/x timings for FPU and SIMD code
« Last post by Siekmanski on Today at 12:28:25 AM »
Code: [Select]
Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz (SSE4)

3864    cycles for 1000 * rcpss
15808   cycles for 1000 * 1/x using fdiv
6211    cycles for 1000 * 1/x using divss

3865    cycles for 1000 * rcpss
15789   cycles for 1000 * 1/x using fdiv
6268    cycles for 1000 * 1/x using divss

3866    cycles for 1000 * rcpss
15797   cycles for 1000 * 1/x using fdiv
6190    cycles for 1000 * 1/x using divss

24      bytes for rcpss
23      bytes for 1/x using fdiv
39      bytes for 1/x using divss

ST0     123453440.0000000000
ST0     123456792.0000000000
ST0     123453440.0000000000
9
The Soap Box / Re: Zen story...
« Last post by Siekmanski on Today at 12:14:25 AM »
Mathematics is the language of the universe.  8)

Quote
My kids will enjoy free universities. Plus great beaches, good food, free health care and a decent choice of red wines. Wanna come over, my friend?

Good point Jochen,

In my country you'll need a study loan ( without having rich parents ) to go to university and have to pay for health care too.
In my learning days this was all for free.
Most of my generation are highly educated, the next generation are not, because many can't afford it.

Once there was a time that The Netherlands was a great country.  :eusa_boohoo:

Italy sounds cool, but what about the women.  :bgrin:
10
The Laboratory / Re: 1/x timings for FPU and SIMD code
« Last post by jj2007 on June 24, 2018, 11:54:42 PM »
Why dont we compare against rcpps and divps, divpd?, should be more useful results i think

Code: [Select]
Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz (SSE4)

3238    cycles for 1000 * rcpss
13094   cycles for 1000 * 1/x using fdiv
10453   cycles for 1000 * 1/x using divss

3157    cycles for 1000 * rcpss
13125   cycles for 1000 * 1/x using fdiv
10602   cycles for 1000 * 1/x using divss

3151    cycles for 1000 * rcpss
13064   cycles for 1000 * 1/x using fdiv
10644   cycles for 1000 * 1/x using divss

24      bytes for rcpss
23      bytes for 1/x using fdiv
39      bytes for 1/x using divss

ST0     123453440.0000000000
ST0     123456792.0000000000
ST0     123453440.0000000000
Code: [Select]
  movd xmm2, FP4(1.0)
  align 4
  .Repeat
movaps xmm1, xmm2 ; reload 1.0
divss xmm1, xmm0 ; divide by 123456789
dec ebx
  .Until Sign?
Pages: [1] 2 3 ... 10