Return-Path: <alex.sutton@reallyfeproduction.com>
Delivered-To: diana@transocean.com
Received: from vps.transocean.com
	by vps.transocean.com (Dovecot) with LMTP id IQ5iKbltalg/LQAAInt2oQ
	for <diana@transocean.com>; Mon, 02 Jan 2017 07:11:53 -0800
Return-path: <alex.sutton@reallyfeproduction.com>
Envelope-to: diana@transocean.com
Delivery-date: Mon, 02 Jan 2017 07:11:53 -0800
Received: from [75.127.2.236] (port=42881 helo=reallyfeproduction.com)
	by vps.transocean.com with esmtp (Exim 4.87)
	(envelope-from <alex.sutton@reallyfeproduction.com>)
	id 1cO4H1-00032u-0p
	for diana@transocean.com; Mon, 02 Jan 2017 07:11:53 -0800
Date: Mon, 02 Jan 2017 10:08:27 -0500
To: <diana@transocean.com>
RunPath-CenterNum: 9220203008939001202030084322
Content-Type: multipart/alternative; boundary="DC20203008XqxEmo1u"
Mime-Version: 1
Bounce-To: <bounce.alex.sutton@reallyfeproduction.com>
Message-ID: <faW1g7535367880efcab8c324536e0c838e3b3.85@alt2.reallyfeproduction.com>
Subject: Claim this by 1/05 and get 50.00 for your local Rite-Aid store.
From: "Alex Sutton" <alex.sutton@reallyfeproduction.com>
X-Spam-Status: No, score=4.7
X-Spam-Score: 47
X-Spam-Bar: ++++
X-Ham-Report: Spam detection software, running on the system "vps.transocean.com",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.
 
 Content preview:  You MUST have the following: * Amazon Is Considering Drone-Friendly
    Floating Warehouses - AND - * ALTU finishes second in Innovation Encounter
    Saturday, October 29, 2016 Lawrence Technological University finished in
   second place in the 2016 Innovation Encounter, a program of the Kern Entrepreneurship
    Education Network. Five schools involved in the KEEN program, which seeks
    to incorporate entrepre... Read more. https://www.ltu.edu/news/ [...] 
 
 Content analysis details:   (4.7 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  1.2 URIBL_ABUSE_SURBL      Contains an URL listed in the ABUSE SURBL blocklist
                             [URIs: reallyfeproduction.com]
  0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was blocked.
                             See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information.
                             [URIs: reallyfeproduction.com]
  0.0 T_SPF_TEMPERROR        SPF: test of record failed (temperror)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  0.0 HTML_FONT_LOW_CONTRAST BODY: HTML font color similar or identical to
                             background
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0002]
  0.0 HTML_MESSAGE           BODY: HTML included in message
  0.9 RAZOR2_CHECK           Listed in Razor2 (http://razor.sf.net/)
  0.5 RAZOR2_CF_RANGE_51_100 Razor2 gives confidence level above 50%
                             [cf: 100]
  1.9 RAZOR2_CF_RANGE_E8_51_100 Razor2 gives engine 8 confidence level
                             above 50%
                             [cf: 100]
  2.0 RDNS_NONE              Delivered to internal network by a host with no rDNS
  0.0 T_REMOTE_IMAGE         Message contains an external image
X-Spam-Flag: NO



--DC20203008XqxEmo1u
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 8bit

You MUST have the following:
* Amazon Is Considering Drone-Friendly Floating Warehouses

- AND -
* ALTU finishes second in Innovation Encounter Saturday, October 29, 2016 Lawrence Technological University finished in second place in the 2016 Innovation Encounter, a program of the Kern Entrepreneurship Education Network. Five schools involved in the KEEN program, which seeks to incorporate entrepre... Read more. https://www.ltu.edu/news/

2-Night Bahamas Cruise for Two from Bahamas Paradise Cruise Line  |

Happy Holidays! Can't see this? View it online (http://www.reallyfeproduction.com/sp/one/b.html)  ?? (http://www.reallyfeproduction.com/two/red.html)

http://www.reallyfeproduction.com/sht/view.htmlhttp://www.reallyfeproduction.com/avb/december/dsx.html


Need to unsub? navigate to this (http://pitch.reallyfeproduction.com) .


I know about the compiler optimizations to improve speed and everything, but I don't see many ways to optimize my assembly solution further (speaking programmatically not mathematically). The C++ code has modulus every term and division every even term, where assembly is only one division per even term. But the assembly is taking on average 1 second longer than the C++ solution. Why is this? I am asking out of mainly curiosity. Edit: Execution times as requested My system: 64 bit Linux on ?1.4 GHz Intel Celeron 2955U (Haswell microarchitecture). g++ (unoptimized): avg 1272 ms g++ -O3 avg 578 ms original asm (div) avg 2650 ms Asm (shr) avg 679 ms @johnfound asm, assembled with nasm avg 501 ms @hidefromkgb asm avg 200 ms @hidefromkgb asm optimized by @Peter Cordes avg 145 ms @Veedrac C++ avg 81 ms with -O3, 305ms with -O0
Delivered by GP-onm Inc. (#) 1136 Foxwood Drive, Lutz, FL 3 3 5 4 9 USA (#)

--DC20203008XqxEmo1u
Content-Type: text/html; charset=UTF-8
Content-transfer-encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Have you seen this yet?</title>
<style type="text/css">
.ExternalClass * {
	line-height: 100%
} /* override ios minimum font-size*/
div, p, a, li, td {
	-webkit-text-size-adjust: none;
}
img[class="100"] {
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
}
table {
	font-family: 'Open Sans', Arial, sans-serif !important;
}

@media only screen and (max-width: 580px) {
table[class="container"] {
	margin: 0 auto !important;
	width: 100% !important;
	min-width: 100% !important;
}
td[class="container"] {
	width: 100% !important;
	min-width: 100% !important;
	float: left !important;
	position: relative !important;
	padding: 0px !important;
}
td[class="100"] {
	min-width: 100% !important;
	height: auto !important;
}
td[class="mobile-hdr-logo-center"] {
	padding: 25px 0 10px 0 !important;
} /* Image Classes */
img[class="100"] {
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
} /* Col Sections */
*[class="collapse-left"] {
	width: 100% !important;
	float: left !important;
	position: relative !important;
	padding: 20px 0 20px 0 !important;
	border-bottom: 1px solid #cccccc !important;
}
*[class="collapse-right"] {
	width: 100% !important;
	float: left !important;
	position: relative !important;
	padding: 20px 0 20px 0 !important;
	border: none !important;
}
td[class="collapse-trxn"] {
	width: 100% !important;
	float: left !important;
	position: relative !important;
	padding: 30px 0 0 0 !important;
}
td[class="container-33"] {
	min-width: 33% !important;
}
td[class="col-4-mobile"] {
	width: 65% !important;
}
td[class="mobile-container-padding"] {
	padding: 20px 10px 20px 10px !important;
} /* GA Partity, Weekend, Live! needs to be removed */
td[class="weekend-mobile-container-padding"] {
	padding: 0px 10px 20px 10px !important;
}
td[class="mobile-container-nav-padding"] {
	padding: 10px 0 10px 0 !important;
} /* Turn off desktop CSS */
td[class="no-padding"] {
	padding: 0px !important;
}
td[class="no-border-no-padding"] {
	padding: 0px !important;
	border: none !important;
}
*[class="display-off"] {
	display: none !important;
} /*Goods Shipment Notification & Transaction Failed */
td[class="shipment-col-4-mobile"] {
	width: 50% !important;
} /* Buttons */
table[class="button-width"] {
	width: 80px !important;
}
td[class="viewButtonMobile"] {
	padding: 12px 10px 12px 10px !important;
} /* Banners */
*[class="mobile-banner"] {
	width: 100% !important;
	max-height: none !important;
	height: auto !important;
	display: block !important;
	padding: 20px 0 0 0 !important;
}
*[class="mobile-banner-img"] {
	width: 100% !important;
	max-height: none !important;
	height: auto !important;
	display: block !important;
} /* User Messaging Service */
*[class="heading_style"] {
	-webkit-text-size-adjust: none !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-variant: normal !important;
	font-weight: normal !important;
	font-family: Arial, Verdana, sans-serif !important;
	color: #cdf5ff !important;
	line-height: 18px !important;
} /* Font Classes */
td[class="mobile-font"] {
	font-size: 13px !important;
}
span[class="nameFont"] {
	font-size: 18px !important;
	line-height: 22px !important;
}
td[class="nameFont"] {
	font-size: 18px !important;
	line-height: 22px !important;
}
td[class="themeFont"] {
	font-size: 30px !important;
	line-height: 34px !important;
}
td[class="heroNameFont"] {
	font-size: 18px !important;
	line-height: 22px !important;
}
a[class="heroNameFont"] {
	text-decoration: none !important;
	font-size: 18px !important;
	line-height: 22px !important;
}
td[class="font-12"] {
	font-size: 12px !important;
}
td[class="font-13"] {
	font-size: 13px !important;
}
td[class="font-16"] {
	font-size: 16px !important;
}
td[class="font-18"] {
	font-size: 18px !important;
}
img[class="glive-deal-image"] {
	width: 80% !important;
	height: auto !important;
	display: block;
	margin: 0 auto;
	padding: 0;
}
td[class="collapse-left-postcard"] {
	width: 100% !important;
	float: left !important;
	position: relative !important;
	padding: 20px 0 20px 0 !important;
}
table[class="seo-button-width"] {
	width: 158px !important;
}
table[class="container_border"] {
	width: 100% !important;
	padding: 0 0 0 0 !important;
}
*[class="margin_zero_auto"] {
	margin: 0 auto !important;
	display: block !important;
}
*[class="text_pad"] {
	padding: 7px 0 0 0 !important;
}
*[class="display_table"] {
	display: block !important;
	width: 100% !important;
}
}
</style>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:100,200,400,300,500,600,700' rel='stylesheet' type='text/css'>
</head>
<body style="margin:0 !important; padding:0!important; background: #ececec !important;">
<div style="display:none; white-space:nowrap; font:0 courier; color:#ffffff; line-height:0; width:600px !important; max-width:600px !important;"><p>You??<strong><u>MUST</u></strong>??have the following:</p>
<br>
<div>
  <ul>
    <li>Amazon Is Considering Drone-Friendly Floating Warehouses

</li>
  </ul>
</div>
<div><br>
  <p><strong>- AND -</strong></p>
  <br>
</div>
<div>
  <ul>
    <li>ALTU finishes second in Innovation Encounter
Saturday, October 29, 2016
Lawrence Technological University finished in second place in the 2016 Innovation Encounter, a program of the Kern Entrepreneurship Education Network. Five schools involved in the KEEN program, which seeks to incorporate entrepre... Read more. https://www.ltu.edu/news/</li>
  </ul>
</div>
</div>

<table cellpadding="0" cellspacing="0" style="border: 0 none; border-spacing: 0; font-family: 'Open Sans', Arial, sans-serif; color:#000000; font-weight: normal; text-align: left; width: 100%; background: #5aaf1f;" align="center">
  <tr>
    <td><span style="color: #5aaf1f; font-size: 2px !important;" height="0">2-Night Bahamas Cruise for Two from Bahamas Paradise Cruise Line &nbsp;|&nbsp;</span></td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" style="border: 0 none; border-spacing: 0; font-family: 'Open Sans', Arial, sans-serif; color:#000000; font-weight: normal; text-align: left; width: 100%; background: #5aaf1f;" align="center">
  <tr>
    <td align="center"><table cellpadding="0" cellspacing="0" style="width: 620px;" align="center" class="container">
        <tr>
          <td align="left" style="width: 250px; color:#ffffff; font-size:22px; padding:20px 0 20px 0;">Happy Holidays!</td>
          <td align="right" style="color: #ffffff;" class="display-off"><a href="http://www.reallyfeproduction.com/sp/one/b.html" style="color: #ffffff; font-size: 14px; text-decoration: none;" target="_blank">Can't see this? View it online</a></td>
          <td align="right" style="padding-right:8px; padding-bottom: 2px;" class="display-off"><a href="http://www.reallyfeproduction.com/two/red.html" style="color: #ffffff; font-size: 16px; text-decoration: none;" target="_blank">&nbsp;&raquo;</a></td>
        </tr>
      </table></td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" style="width: 100%; background: #ececec" align="center">
  <tr>
    <td align="center"><table cellpadding="0" cellspacing="0" style="width: 100%; background: #ececec;" bgcolor="#ececec" align="center" class="container">
        <tr>
          <td align="center"><table cellpadding="0" cellspacing="0" style="width: 600px; background: #ececec;" bgcolor="#ececec" align="center" class="container">
              <tr>
                <td align="center" style="padding: 0 0 0 0;" class="weekend-mobile-container-padding"><table cellpadding="0" cellspacing="0" style="border: 0 none; border-spacing: 0; font-family: 'Open Sans', Arial, sans-serif; color:#000000; font-weight: normal; text-align: left; width: 600px;" align="center" class="container" bgcolor="#ececec">
                    <tr>
                      <td colspan="2" style="min-width: 290px;"><a href="http://www.reallyfeproduction.com/sht/view.html" target="_blank" style="display: block; border: none;">
                        <table cellpadding="0" cellspacing="0" style="border: 0 none; border-spacing: 0; font-family: 'Open Sans', Arial, sans-serif; color:#000000; font-weight: normal; text-align: left; width: 600px; min-width: 290px;" align="center" class="container">
                          <tr>
                            <td width="600" align="center" valign="top" style="padding:20px 0 0 0;"><a href="http://www.reallyfeproduction.com/avb/december/dsx.html" style="color:#0185C6; text-decoration:none;" target="_blank"><img src="http://motor.reallyfeproduction.com/" style="display: block; border: none; width: 600px; min-width:600px; font-size:12px; color:#0792bd;" width="600" alt="Ring in the New Year With Savings from Rite Aid" class="100" /></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td align="left" style="padding: 13px 13px 0 13px;" bgcolor="#ffffff">&nbsp;</td>
                    </tr>
                  </table>
                  <table cellpadding="0" cellspacing="0" style="font-family: Arial, Helvetica, sans-serif; font-size:14px !important; line-height:19px !important; color:#333; width: 600px; background: #ececec;" align="center" class="container">
                    <tr>
                      <td align="right" style="padding: 20px 0 0 0;">&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- Footer -->
<table cellpadding="0" cellspacing="0" style="border: 0 none; border-spacing: 0; font-family: 'Open Sans', Arial, sans-serif; color:#000000; font-weight: normal; text-align: left; width: 100%; background: #ececec;" align="center">
    <tr>
  
    <td align="center" style="padding: 30px 0 0 0;;">
  
  <table cellpadding="0" cellspacing="0" style="width: 600px;" align="center" class="container">
      <tr>
    
      <td>
    
    <table cellpadding="0" cellspacing="0" style="width: 100%; background: #ffffff;" align="center">
      <tr>
        <td align="left"><table cellpadding="0" cellspacing="0" style="background: #ffffff;" align="left">
            <tr>
              <td style="padding: 15px 30px 15px 30px; font-size: 10px;" align="left"></td>
            </tr>
          </table></td>
        <td align="right"><table cellpadding="0" cellspacing="0" style="background: #ffffff;" align="right">
            <tr>
              <td style="padding: 15px 30px 15px 30px; font-size: 12px;color:#aaaaaa" align="left">Need to unsub? <a href="http://pitch.reallyfeproduction.com" style="text-decoration: none; color:#aaaaaa; text-decoration:underline" target="_blank">navigate to this</a>.</td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td colspan="2"><table cellpadding="0" cellspacing="0" style="width: 90%; background: #ffffff;" align="center">
            <tr>
              <td align="center" style="border-top: 1px solid #e9e9e9; width: 100%;">&nbsp;</td>
            </tr>
          </table></td>
      </tr>
    </table>
    <table cellpadding="0" cellspacing="0" style="width: 100%; background: #ffffff;" align="center">
   
      <tr>
          <td align="left" style="padding: 10px 30px 10px 30px; font-size: 12px; color:#ffffff;" align="left">
       I know about the compiler optimizations to improve speed and everything, but I don't see many ways to optimize my assembly solution further (speaking programmatically not mathematically).

The C++ code has modulus every term and division every even term, where assembly is only one division per even term.

But the assembly is taking on average 1 second longer than the C++ solution. Why is this? I am asking out of mainly curiosity.

Edit: Execution times as requested

My system: 64 bit Linux on ?1.4 GHz Intel Celeron 2955U (Haswell microarchitecture).

g++ (unoptimized): avg 1272 ms
g++ -O3 avg 578 ms
original asm (div) avg 2650 ms
Asm (shr) avg 679 ms
@johnfound asm, assembled with nasm avg 501 ms
@hidefromkgb asm avg 200 ms
@hidefromkgb asm optimized by @Peter Cordes avg 145 ms
@Veedrac C++ avg 81 ms with -O3, 305ms with -O0
        </td>
      
        </tr>
      
      <tr>
        <td style="padding: 0 30px 30px 30px; font-size: 10px; color: #aaaaaa;" align="left">Delivered by <a href="#"style="text-decoration: none; color:#51c1dd;" target="_blank">GP-onm Inc.</a> <a href="#" style="text-decoration:none;color:#aaaaaa;" target="_blank">1136 Fo<span>xwood</span> Drive, Lutz, FL 3 3 5 4 9 USA</a></td>
      </tr>
    </table>
      </td>
    
      </tr>
    
  </table>
    </td>
  
    </tr>
  
</table>
</body>
</html>

--DC20203008XqxEmo1u--
